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

Adding Mnemonic to JTabbedPane titles

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1.6, 1.2.0, 1.3.0
    • client-libs
    • generic, x86
    • generic, windows_nt



      Name: dbT83986 Date: 01/04/99


      The titles in a JTabbedPane should be buttons, so I can
      setMnemonic on them.

      As it stands, applications with tabbed panes can't be driven
      from the keyboard effectively.
      (Review ID: 48782)
      ======================================================================

      Name: skT88420 Date: 11/10/99


      java version "1.3beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3beta-O)
      Java(TM) HotSpot Client VM (build 1.3beta-O, mixed mode)

      A user should be able to press a hotkey to access a component such as a
      JTextArea. If this component is enclosed inside a JPanel with a TitledBorder,
      that border should have a mnemonic allowing the component to have its focus
      requested.

      It's not always appropriate to have a JLabel next to such a component; nor
      should it be necessary.

      I suggest adding the methods:

      setDisplayedMnemonic(char aChar); and
      setLabelFor(Component component); etc, as in JLabel

      to the TitledBorder class.


      (see also 4200562, a similar request for mnemonics on tabs)
      (Review ID: 97711)
      ======================================================================

            amfowler Anne Fowler (Inactive)
            dblairsunw Dave Blair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: