-
Enhancement
-
Resolution: Fixed
-
P4
-
1.1.5
-
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)
======================================================================