🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.swing
2 messages
2 total messages Started by GEORGE Sun, 19 Jun 2005 03:25
look and feel issue
#547
Author: GEORGE
Date: Sun, 19 Jun 2005 03:25
15 lines
1417 bytes
I am able to switch look and feel in my app between metal, motif and windows 
without any issue but if I set my JFrame with

JFrame.setDefaultLookAndFeelDecorated(true);  then I encounter problems. 
When switching out of Metal to either Motif or Windows,  the frame size 
becomes larger than screen size and the window title bar with close, 
maximize or minimize buttons are not visible.

The only property I set on the frame is setExtendedState(JFrame.BOTH);

I am using Jbuilder 2005 foundation with JDK 1.5       on Windows XP.

Any help appreciated.  TIA

George 
Re: look and feel issue
#550
Author: David Orriss, Jr. [TeamB]
Date: Tue, 21 Jun 2005 02:44
47 lines
2759 bytes
On Sat, 18 Jun 2005 23:25:12 -0400, GEORGE wrote:

> I am able to switch look and feel in my app between metal, motif and windows 
> without any issue but if I set my JFrame with
> 
> JFrame.setDefaultLookAndFeelDecorated(true);  then I encounter problems. 
> When switching out of Metal to either Motif or Windows,  the frame size 
> becomes larger than screen size and the window title bar with close, 
> maximize or minimize buttons are not visible.
> 
> The only property I set on the frame is setExtendedState(JFrame.BOTH);
> 
> I am using Jbuilder 2005 foundation with JDK 1.5       on Windows XP.
> 
> Any help appreciated.  TIA
> 
> George

I can't reproduce your problem in JDK 1.5 *or* JDK 1.4.2.  I have to assume
that you mean setExtendedState(JFrame.MAXIMIZED_BOTH) in the above call.
This was the code I used to repaint in each of the PLAFs.  Hopefully you
are doing something similar...

    try {
      UIManager.setLookAndFeel(
          "com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
      SwingUtilities.updateComponentTreeUI(this);
    }
    catch (Exception ex) {
      ex.printStackTrace();
    }

-- 
David Orriss Jr. TeamB
http://www.davenet.net/
* Please limit all responses to the newsgroups. Thanks! *
Got a JBuilder website? Join the JBuilder Netring!  Check out
http://www.davenet.net/jbwebring/jbwebring.htm for more information!

My blog: http://mywebpages.comcast.net/daorriss/

Save yourself some time and check these sites:

Borland Newsgroup Search:
 http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's Faq-O-Matic: 
 http://www.visi.com/~gyles19/fom-serve/cache/1.html
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads