🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JButtons and Motif LnF

#1575
From: John McGrath [TeamB]
Date: Tue, 14 Oct 2003 06:37
22 lines
1563 bytes
On 10/9/2003 at 6:04:50 AM, Kostas wrote:

> When i am changing the LnF dynamically the JButtons in motif LnF 
> are shown abnormally. Detaily they become smaller and there is no 
> more extra space (top,bottom,left,right), only for the title. How 
> can i fix it?

Are you updating the UI delegates for the buttons?  Take a look at
SwingUtilities.updateComponentTreeUI().

If that is not the problem, try running the SwingSet2 demo from the JDK
demo directory and see if it shows the same problem you are seeing with
your code.

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <3f8b999e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f8532bd@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,6968c56fb6b29b0c
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2003-10-13 23:39:10 PST
From: "John McGrath  [TeamB]" <ng-b@JPMcGrath.net>
Subject: Re: JButtons and Motif LnF
Newsgroups: borland.public.jbuilder.java.swing
References: <3f8532bd@newsgroups.borland.com>
User-Agent: XanaNews/1.15.7.2
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
NNTP-Posting-Host: 141.158.61.29
Message-ID: <3f8b999e$1@newsgroups.borland.com>
Date: 13 Oct 2003 23:37:18 -0700
X-Trace: newsgroups.borland.com 1066113438 141.158.61.29 (13 Oct 2003 23:37:18 -0700)
Lines: 22
X-Authenticated-User: jpmcgrath
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail