Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8092098

[TabPane] Support for draggable tabs

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: fx2.0.1, fx2.0.2, fx2.0.3, fx2.1
    • Fix Version/s: 10
    • Component/s: javafx
    • Environment:

      All environments

      Description

      By default when you create a TabPane, I don't think it provides the best out the box experience.

      I've already filed a ticket about the close animation (RT-17906) but there is more than that. I think the default style should be better (shape and close button style). I also think you should be able to rearrange tabs by default (or by setting a property allowing it). I also think that there should be a "new tab" button by default (that obviously can be listened to) that again, can be made visible or not.

      You only need to look at any modern browser to see what I'm talking about - my favourite is chrome and if the TabPane looked and behaved like that by default, I would be very happy.
      1. detached-tabs.diff
        6 kB
        Jonathan Giles
      2. PlaneSampleTabPane.java
        2 kB
        Jonathan Giles
      3. RT-19659-TabPane.patch
        7 kB
        Jonathan Giles
      4. RT-19659-TabPaneSkin.patch
        18 kB
        Jonathan Giles
      5. SampleTabPane.java
        3 kB
        Jonathan Giles

        Issue Links

          Activity

          Hide
          duke J. Duke (Inactive) added a comment -
          Can't it be planned for 8u60 as well? It looks like it is almost done and I hope it shouldn't require much effort to finalize it.
          Show
          duke J. Duke (Inactive) added a comment - Can't it be planned for 8u60 as well? It looks like it is almost done and I hope it shouldn't require much effort to finalize it.
          Hide
          kcr Kevin Rushforth added a comment -
          No, we are too close to feature complete to get it in for 8u60, but we will get it in for 9.
          Show
          kcr Kevin Rushforth added a comment - No, we are too close to feature complete to get it in for 8u60, but we will get it in for 9.
          Hide
          tschindl Tom Schindl added a comment -
          Update on this: The current implementation uses "native" drag and drop which as I found out in the meantime is NOT a good idea because this would not support deatching (=dropping outside a javafx stage)
          Show
          tschindl Tom Schindl added a comment - Update on this: The current implementation uses "native" drag and drop which as I found out in the meantime is NOT a good idea because this would not support deatching (=dropping outside a javafx stage)
          Hide
          jgiles Jonathan Giles added a comment -
          In late 2016 I very briefly explored this issue, and created a small patch (attached - name is detached-tabs.diff). For the sake of not losing the code (even though it is very primitive and incomplete), I'm attaching it to this jira issue.
          Show
          jgiles Jonathan Giles added a comment - In late 2016 I very briefly explored this issue, and created a small patch (attached - name is detached-tabs.diff). For the sake of not losing the code (even though it is very primitive and incomplete), I'm attaching it to this jira issue.
          Hide
          psrivastava Praveen Srivastava added a comment -
          Targeted JDK10
          Show
          psrivastava Praveen Srivastava added a comment - Targeted JDK10

            People

            • Assignee:
              arapte Ambarish Rapte
              Reporter:
              ndarcy Nick D'Arcy
            • Votes:
              10 Vote for this issue
              Watchers:
              20 Start watching this issue

              Dates

              • Created:
                Updated:
                Imported: