Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

changing background for jspinner

843807Aug 16 2010 — edited Aug 18 2010
Hello,

I have a JSpinner that I am using.
When I disable it the "editor" and buttons go "disabled gray" (under window xp) but there is still a white outline just inside the border of the whole jspinner.
I want to change this white outline or make the jspinner non-opaque.

Both setBackground() and setOpaque() have no effect.

I overwrote the setEnabled(boolean enabled) function to also set setVisible(enabled) for all the jspinner's children. This hid the editor and buttons but i was left with a white background that I can't seem to change or get rid of.

Can someone help me with this?

Thank you
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 15 2010
Added on Aug 16 2010
15 comments
1,834 views