🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: how to change font in jspinner?

#1728
From: John McGrath [TeamB]
Date: Fri, 22 Aug 2003 03:09
15 lines
1392 bytes
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: <3f45895b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news-xfer2.atl.newshosting.com!63.218.45.10.MISMATCH!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3f45109c@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-21 20:11:33 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>
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: <3f45895b$1@newsgroups.borland.com>
Date: 21 Aug 2003 20:09:15 -0700
X-Trace: newsgroups.borland.com 1061521755 141.158.52.223 (21 Aug 2003 20:09:15 -0700)
Lines: 15
X-Authenticated-User: jpmcgrath
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news-xfer2.atl.newshosting.com!63.218.45.10.MISMATCH!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail