Hallo, ich würde gerne wissen, wie ich die Hintergrundfarbe des Bereich in dem meine Zahlen stehen bei einem JSpinner mit JSpinnerNumberModel änder kann.
meinJSpinner.setBackground(new Color(135,45,7)); //z.B.
hat nicht funktioniert.
eventl. hat es ja etwas mit dem Color Model, von dem ich etwas in der javadoc gelesen (aber nicht verstanden) habe zu tun
hehe ;D
Vielen Dank schon mal für eure Hilfe
ToKaM OnE
getColorModel
public ColorModel getColorModel()Gets the instance of ColorModel used to display the component on the output device.
Returns:
the color model used by this component
Since:
JDK1.0
See Also:
ColorModel, ComponentPeer.getColorModel(), Toolkit.getColorModel()
meinJSpinner.setBackground(new Color(135,45,7)); //z.B.
hat nicht funktioniert.
eventl. hat es ja etwas mit dem Color Model, von dem ich etwas in der javadoc gelesen (aber nicht verstanden) habe zu tun
Vielen Dank schon mal für eure Hilfe
ToKaM OnE
getColorModel
public ColorModel getColorModel()Gets the instance of ColorModel used to display the component on the output device.
Returns:
the color model used by this component
Since:
JDK1.0
See Also:
ColorModel, ComponentPeer.getColorModel(), Toolkit.getColorModel()