🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: how to change font in jspinner?

#1731
From: John McGrath [TeamB]
Date: Sat, 23 Aug 2003 01:18
17 lines
1537 bytes
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: <3f46c0cd$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-05!sn-xit-06!sn-xit-09!supernews.com!216.170.153.135.MISMATCH!tdsnet-transit!newspeer.tds.net!enews.sgi.com!news.xtra.co.nz!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3f45109c@newsgroups.borland.com> <3f45895b$1@newsgroups.borland.com> <3f4661ba@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 18:22:08 PST
From: "John McGrath  [TeamB]" <ng-b@jpmcgrath.net>
Subject: Re: how to change font in jspinner?
Newsgroups: borland.public.jbuilder.java.swing
References: <3f45109c@newsgroups.borland.com> <3f45895b$1@newsgroups.borland.com> <3f4661ba@newsgroups.borland.com>
User-Agent: XanaNews/1.15.5.3
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
NNTP-Posting-Host: 141.158.52.223
Message-ID: <3f46c0cd$1@newsgroups.borland.com>
Date: 22 Aug 2003 18:18:05 -0700
X-Trace: newsgroups.borland.com 1061601485 141.158.52.223 (22 Aug 2003 18:18:05 -0700)
Lines: 17
X-Authenticated-User: jpmcgrath
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-05!sn-xit-06!sn-xit-09!supernews.com!216.170.153.135.MISMATCH!tdsnet-transit!newspeer.tds.net!enews.sgi.com!news.xtra.co.nz!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail