🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #1730

Re: how to change font in jspinner?

#1730
From: Ofiuco
Date: Fri, 22 Aug 2003 18:32
21 lines
1698 bytes
I wrote:
    JTextField jtf = ((JTextField)jSpinner1.getEditor());
but it throws a CastException

"John McGrath [TeamB]" <ng-b@jpmcgrath.net> ha scritto nel messaggio
news:3f45895b$1@newsgroups.borland.com...
> On 8/21/2003 at 2:34:00 PM, Ofiuco wrote:
>
> > I can't change the font displayed in a jspinner used to set the date,
> > pls someone helps me
>
> That is because the editor is a compound component.  Setting the font
> for the outermost container does not do anything,
>
> You can get the JTextField used by the JSpinner.DateEditor by calling
> its getEditor() method.
>
> --
> Regards,
>
> John McGrath  [TeamB]
Technical Details
Message-ID: <3f4661ba@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!news-out1.nntp.be!propagator2-sterling!In.nntp.be!newsfeed01.tsnz.net!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3f45109c@newsgroups.borland.com> <3f45895b$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,f97fe19a9f3153cc
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2003-08-22 11:40:05 PST
From: "Ofiuco" <vito.c@libero.it>
Newsgroups: borland.public.jbuilder.java.swing
References: <3f45109c@newsgroups.borland.com> <3f45895b$1@newsgroups.borland.com>
Subject: Re: how to change font in jspinner?
Date: Fri, 22 Aug 2003 20:32:24 +0200
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 130.192.119.111
Message-ID: <3f4661ba@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1061577146 130.192.119.111 (22 Aug 2003 11:32:26 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!news-out1.nntp.be!propagator2-sterling!In.nntp.be!newsfeed01.tsnz.net!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail