Axel Janssen
2003-07-16 11:14:46 UTC
Hallo,
lese hier gerade in Manning, Swing 2nd edition bzgl. JComboBox:
class javax.swing.JComboBox
This class represents a basic GUI component which consists of two parts:
- A pop-up menu (an implementation of javax.swing.plaf.basic.ComboPopup). By
default,
this is a JPopupMenu subclass (javax.swing.plaf.basic.BasicCombo-
Popup) that contains a <WICHTIGER_PUNKT>JList in a
JScrollPane</WICHTIGER_PUNKT>.
- A button that acts as a container for an editor or renderer component, and
an arrow button
that is used to display the pop-up menu.
und ein paar Seiten später:
Unfortunately, there is no easy way to access JComboBox's drop-down JList,
which prevents us from assigning new foreground and background colors.
Ideally,
JComboBox would provide this communication with its JList. We hope to see
this functionality in a future version.
Wie kann ich nun die Foreground/Background Colors in einem "auf nicht
einfache Weise" verändern?
Gruß Axel
lese hier gerade in Manning, Swing 2nd edition bzgl. JComboBox:
class javax.swing.JComboBox
This class represents a basic GUI component which consists of two parts:
- A pop-up menu (an implementation of javax.swing.plaf.basic.ComboPopup). By
default,
this is a JPopupMenu subclass (javax.swing.plaf.basic.BasicCombo-
Popup) that contains a <WICHTIGER_PUNKT>JList in a
JScrollPane</WICHTIGER_PUNKT>.
- A button that acts as a container for an editor or renderer component, and
an arrow button
that is used to display the pop-up menu.
und ein paar Seiten später:
Unfortunately, there is no easy way to access JComboBox's drop-down JList,
which prevents us from assigning new foreground and background colors.
Ideally,
JComboBox would provide this communication with its JList. We hope to see
this functionality in a future version.
Wie kann ich nun die Foreground/Background Colors in einem "auf nicht
einfache Weise" verändern?
Gruß Axel