Menu

#3 Spinner background color not set correctly

open
nobody
None
5
2009-05-21
2009-05-21
Dale Anson
No

Please see the code for the LipstikSpinnerUI.java source at:

http://lipstiklf.cvs.sourceforge.net/viewvc/lipstiklf/lipstikLF-sourceforge/trunk/com/lipstikLF/delegate/LipstikSpinnerUI.java?revision=1.3&view=markup

On line 84, the editor background is set to "Spinner.background":

editor.setBackground(UIManager.getColor("Spinner.background"));

In a JSpinner, the editor is a text component, so the background should be set to "text":

editor.setBackground(UIManager.getColor("text"));

Discussion


Log in to post a comment.

MongoDB Logo MongoDB