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

No accessible API way to get titleborder text

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.1.5
    • client-libs
    • beta
    • x86
    • windows_nt



      Name: el35337 Date: 05/31/98


      Since all JComponents can have a border, the text
      associated with a titledBorder is not accessible through
      accessible interface/apis.
       Here is the current hack we are doing for CSUN to get
      the text at least for JPanels:
             if (thisComponent instanceof JPanel) {
                Border b =((JPanel)thisComponent).getBorder();
                if (b instanceof TitledBorder) {
                   TitledBorder tb = (TitledBorder)b;
                   return tb.getTitle();

                }
             }
      but this doesn't work for the titledBorders shown
      in the border panel of swingset because the border
      is set on a JLabel extension.
      Could you implement a getAccessibleBorderTitle?
      (Review ID: 25800)
      ======================================================================

            lmonsantsunw Lynn Monsanto (Inactive)
            elarsen Erik Larsen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: