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

Use arbitrary (J)Components as JTabbedPane tab labels.

XMLWordPrintable

    • b32
    • generic, x86, sparc
    • generic, solaris_2.5.1, windows_95, windows_nt, windows_2000, windows_xp



      Name: boT120536 Date: 09/04/2001


      java version "1.4.0-beta2"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta2-b77)
      Java HotSpot(TM) Client VM (build 1.4.0-beta2-b77, mixed mode)

      It would be useful to be able to use an arbitrary Component as the label for
      JTabbedPane's tabs. This way, for instance, it would be possible to have a text
      label and close button on each tab.

      A good example of what I envision is demonstrated in the "tabbed mode" of the
      Galeon web browser at http://galeon.sourceforge.net. There, you can be browsing
      several pages independently of one another, with a row of tabs along the top,
      one for each such session, like a JTabbedPane with a bunch of JTextPanes would
      look. Each tab in Galeon, however, has a label and a close button (a little X),
      which, when clicked, closes that tab -- even if that tab isn't the currently
      focused tab.
      (Review ID: 131277)
      ======================================================================

            alexp Alexander Potochkin (Inactive)
            bonealsunw Bret O'neal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: