Article View: borland.public.jbuilder.java.swing
Article #1734It works, ty very much
From: Ofiuco
Date: Mon, 25 Aug 2003 17:39
Date: Mon, 25 Aug 2003 17:39
29 lines
1936 bytes
1936 bytes
I wrote:
JSpinner.DateEditor jsde=new JSpinner.DateEditor(jSpinner1,"yyyy-MM-dd");
Font font = new Font("Arial", Font.BOLD, 20);
jsde.getTextField().setFont(font);
jSpinner1.setEditor(jsde);
and it works perfectly thank you very much.
"John McGrath [TeamB]" <ng-b@jpmcgrath.net> ha scritto nel messaggio
news:3f46c0cd$1@newsgroups.borland.com...
> On 8/22/2003 at 2:32:24 PM, Ofiuco wrote:
>
> > > You can get the JTextField used by the JSpinner.DateEditor by
> > > calling its getEditor() method.
>
> > I wrote:
> > JTextField jtf = ((JTextField)jSpinner1.getEditor());
> > but it throws a CastException
>
> Ooops. I guess I left out part of that. You get the editor from the
> JSpinner using getEditor(). You get the JFormattedTextField from the
> editor using getTextField().
>
> --
> Regards,
>
> John McGrath [TeamB]
Technical Details
Message-ID:
<3f4a49d6@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!newshosting.com!news-xfer2.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3f45109c@newsgroups.borland.com> <3f45895b$1@newsgroups.borland.com> <3f4661ba@newsgroups.borland.com> <3f46c0cd$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-25 10:41:38 PST From: "Ofiuco" <vito.c@libero.it> Newsgroups: borland.public.jbuilder.java.swing References: <3f45109c@newsgroups.borland.com> <3f45895b$1@newsgroups.borland.com> <3f4661ba@newsgroups.borland.com> <3f46c0cd$1@newsgroups.borland.com> Subject: It works, ty very much Date: Mon, 25 Aug 2003 19:39:31 +0200 Lines: 31 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: <3f4a49d6@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1061833174 130.192.119.111 (25 Aug 2003 10:39:34 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!newshosting.com!news-xfer2.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail