Board index » jbuilder » JButtons and Motif LnF

JButtons and Motif LnF


2003-10-09 06:07:22 PM
jbuilder24
Hi all,
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?
Thank you in advance, Kostas
 
 

Re:JButtons and Motif LnF

On 10/9/2003 at 6:04:50 AM, Kostas wrote:
Quote
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:
www.JPMcGrath.net/newsgroups/e-mail.html
 

Re:JButtons and Motif LnF

On 10/9/2003 at 6:07:22 AM, Kostas wrote:
Quote
Hi all,
When i am changing the LnF dynamically the JButtons in motif LnF are
[snip]
Please do not multipost, as it is against the rules for this news
server. You should read the newsgroup guidelines at:
info.borland.com/newsgroups/guide.html
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
www.JPMcGrath.net/newsgroups/e-mail.html
 

{smallsort}