Article View: borland.public.jbuilder.java.swing
Article #9697Re: Font and Size
From: Ken Chan
Date: Thu, 03 Feb 2000 00:00
Date: Thu, 03 Feb 2000 00:00
16 lines
1155 bytes
1155 bytes
Darcy Schultz wrote... > I would rather write a single line of code or a method to tweak > the Windows L&F and then let all my controls get that setting. Have you tried something like this: UIManager.put( "Menu.font", new Font( "Arial", Font.PLAIN, 8 )); UIManager.put( "MenuItem.font", new Font( "Arial", Font.PLAIN, 8 )); The keys for different aspects of the UI are in the source for BasicLookAndFeel. The bad news is that (on my system at least) the resulting font is pretty bad, not like the native Arial 8. -- //Ken@Borland <Please follow-up to newsgroup; do not reply to e-mail>
Technical Details
Message-ID:
<MPG.1303beb1b55077549896bb@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<877250$4001@bornews.borland.com> <3897140A.5A193B10@inprise.com> <87774b$jj1@bornews.borland.com> <389770C7.BB0DA8D@inprise.com> <87acee$2uh4@bornews.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,4465b35f702de576 X-Google-Attributes: gid111d45,public From: Ken Chan <supportinfo@borland.com> Subject: Re: Font and Size Date: 2000/02/03 Message-ID: <MPG.1303beb1b55077549896bb@forums.borland.com> X-Deja-AN: 581327434 References: <877250$4001@bornews.borland.com> <3897140A.5A193B10@inprise.com> <87774b$jj1@bornews.borland.com> <389770C7.BB0DA8D@inprise.com> <87acee$2uh4@bornews.borland.com> Organization: Borland Newsgroups: borland.public.jbuilder.java.swing