Article View: borland.public.jbuilder.java.swing
Article #857Re: maximise swing application window hides windows taskbar
From: David Bolsover
Date: Sat, 09 Oct 2004 11:22
Date: Sat, 09 Oct 2004 11:22
39 lines
2245 bytes
2245 bytes
John Thanks for the reply.. Problem is when I use the system maximize button on the JFrame. David Browne has shown the way in his reply to the original post .. looks like a bug in UIManager.getCrossPlatformLookAndFeelClassName() db "John McGrath [TeamB]" <ng-b@JPMcGrath.net> wrote in message news:41679a62@newsgroups.borland.com... > On 10/8/2004 at 2:32:34 PM, David Bolsover wrote: > >> Using a JFrame for an application window - when maximised this hides the >> M$ taskbar - how do I prevent this? > > Is it filling the display when you use the system maximize button on the > JFrame? Or are you trying to maximize the JFrame programmatically? > > If the former, that should never happen. If the latter, it should not > happen either, assuming you are actually maximizing the frame, as opposed > to setting the bounds for the frame to the bounds of the display. > > You can maximize the frame with the following line of code: > > frame.setExtendedState( Frame.MAXIMIZED_BOTH ); > > This works on JDK 1.4 and later. > > -- > Regards, > > John McGrath [TeamB] > > --------------------------------------------------- > Before sending me e-mail, please read: > http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<4167c9c5@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4166dd19$1@newsgroups.borland.com> <41679a62@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,ac1a4bd9a75c0fee X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit From: "David Bolsover" <junk1@bolsover.com> Newsgroups: borland.public.jbuilder.java.swing References: <4166dd19$1@newsgroups.borland.com> <41679a62@newsgroups.borland.com> Subject: Re: maximise swing application window hides windows taskbar Date: Sat, 9 Oct 2004 12:22:28 +0100 Lines: 41 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 NNTP-Posting-Host: 213.2.209.202 Message-ID: <4167c9c5@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1097320901 213.2.209.202 (9 Oct 2004 04:21:41 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail