Thread View: borland.public.jbuilder.java.swing
2 messages
2 total messages
Started by Zoran Pjevic
Thu, 15 Jul 2004 12:26
jSpinner foreground color not setable
Author: Zoran Pjevic
Date: Thu, 15 Jul 2004 12:26
Date: Thu, 15 Jul 2004 12:26
12 lines
1166 bytes
1166 bytes
Hello everybody I am trying to set the foreground color of a JSpinner field, but it appears always in black regardless what I set as the foreground color. What's wrong here? I am using java version 1.4.1-b21 If this is a identifed Java bug, a link to a message explaining it would be also very useful. Regards, Zoran
Re: jSpinner foreground color not setable
Author: Zoran Pjevic
Date: Thu, 15 Jul 2004 13:09
Date: Thu, 15 Jul 2004 13:09
20 lines
1461 bytes
1461 bytes
On Thu, 15 Jul 2004 14:26:50 +0200, Zoran Pjevic <zpjevic@anitesystems.de> wrote: >I am trying to set the foreground color of a JSpinner field, but it >appears always in black regardless what I set as the foreground color. I have a workarouns solution in the Java Technology Forum. BAD: spinner.setForeground(Color color) GOOD: JSpinner.DefaultEditor e =(JSpinner.DefaultEditor)spinner.getEditor(); JFormattedTextField TF=(JFormattedTextField)e.getTextField(); TF.setForeground(myColor); Regards, Zoran
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads