Article View: borland.public.jbuilder.java.swing
Article #806Re: jSpinner foreground color not setable
From: 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
Technical Details
Message-ID:
<490df01t34dfftopb0cgp5v7sg2epbk9mk@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<iotcf01umd5buk3nkip7m0u4aas14m0kks@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,5b537133c8ff76f9 X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit From: Zoran Pjevic <zpjevic@anitesystems.de> Newsgroups: borland.public.jbuilder.java.swing Subject: Re: jSpinner foreground color not setable Date: Thu, 15 Jul 2004 15:09:14 +0200 Message-ID: <490df01t34dfftopb0cgp5v7sg2epbk9mk@4ax.com> References: <iotcf01umd5buk3nkip7m0u4aas14m0kks@4ax.com> X-Newsreader: Forte Free Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 213.157.29.250 X-Trace: newsgroups.borland.com 1089896866 213.157.29.250 (15 Jul 2004 06:07:46 -0700) Lines: 23 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail