Article View: borland.public.jbuilder.java.swing
Article #550Re: look and feel issue
From: David Orriss, Jr. [TeamB]
Date: Tue, 21 Jun 2005 02:44
Date: Tue, 21 Jun 2005 02:44
47 lines
2759 bytes
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
Technical Details
Message-ID:
<4we1u1uwwvyy$.dlg@news.davenet.net>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42b4e597$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,2b50a81a546c6712 X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit From: "David Orriss, Jr. [TeamB]" <jbuilder_man@davenet.net> Subject: Re: look and feel issue Newsgroups: borland.public.jbuilder.java.swing User-Agent: 40tude_Dialog/2.0.15.1 (8de1cdcb.103.430) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit References: <42b4e597$1@newsgroups.borland.com> Date: Mon, 20 Jun 2005 19:44:26 -0700 Message-ID: <4we1u1uwwvyy$.dlg@news.davenet.net> X-Face: "huzh55Xi]!ZNni78>a*5+).`SK?<^q2MlHk-C]Z2M9T@\J5ZCB$95Ey+s"XQuhGFA[eutZ :0^AV!Q;t>gE`1-=8d;HZ6~*o1dH<X9\b$!|(}+I'!Xq)@3Op}%0ArW&nf'Qh*EwR NNTP-Posting-Host: 24.18.7.67 X-Trace: newsgroups.borland.com 1119321863 24.18.7.67 (20 Jun 2005 19:44:23 -0700) Lines: 47 X-Authenticated-User: daorriss Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail