-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
1.3.0
-
generic
-
generic
Name: boT120536 Date: 01/25/2001
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)
THE FOLLOWING IS AN EXCERPT FROM A REPLY ON ###@###.###
//-Begin
On Thu, 04 Jan 2001, ###@###.### wrote:
Hi,
I must be badly overlooking something, but I cannot find where to set
the value of the JLabel property "displayMnemonic". I looked
especially hard under the "Properties" and the "Other Properties" tabs
of the Component Inspector for something to that effect -- to no
avail. Is it really missing?? (I am sure it is not.)
//-End Excerpt
strange but true. JLabelBeanInfo in <jdk>/lib/dt.jar does not list
displayedMnemonic as a property for JLabel. The IDE relies on BeanInfos
to get information about beans. In this case I think JLabelBeanInfo is
wrong. We can probably hack around it in the IDE, but I suggest you
rather go to the Java Developer Connection site and file a bug against
the JDK
-- Trung
ADDITIONAL INFORMATION:
1. Execute the source code in 2.
2.
Class beanInfoClass =
Class.forName("javax.swing.JLabelBeanInfo");
SwingBeanInfo sbi = (SwingBeanInfo) beanInfoClass.newInstance();
PropertyDescriptor[] pdescSeq = sbi.getPropertyDescriptors();
for ( int ix = 0; ix < pdescSeq.length; ix++ ) {
System.out.println(pdescSeq[ix].getName());
}
4. The code snippet in 2. outputs the following:
labelFor
UI
UIClassID
iconTextGap
accessibleContext
disabledIcon
verticalAlignment
verticalTextPosition
icon
horizontalTextPosition
horizontalAlignment
text
(Review ID: 114620)
======================================================================
- duplicates
-
JDK-4277957 BeanInfo from Introspector.getBeanInfo() undefined for multiple setters/getters
-
- Closed
-