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

Mouse click over selected Tab in JTabbedPane doesn't bring focus border

XMLWordPrintable

      Ideally if a component is focusable, than mouse click on it should bring focus border over it
      But clicking on selected Tab in JTabbedPane doesn't bring focus border over it in all the
      java L&Fs while if you compare with some of the native behaviour, say win XP than this is not the
      case.

      Steps to reproduce:
      1) Open SwingSet2(Keep default Java L&F & Ocean theme)
      2) Go to JTabbedPane demo
      3) You should see a selected tab "Laine"
      4) Now click on the "Laine" tab and note it will not bring
         any focus border, Now if you click on someother neighbouring tab and click
         "Laine" back, than you will see a focus border over it.

      Reproducible in all L&F including windows.

      ###@###.### 2004-03-23

            svioletsunw Scott Violet (Inactive)
            hsinghsunw Hemant Singh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: