Article View: borland.public.jbuilder.java.swing
Article #855Re: maximise swing application window hides windows taskbar
From: John McGrath [TeamB]
Date: Sat, 09 Oct 2004 07:59
Date: Sat, 09 Oct 2004 07:59
26 lines
1765 bytes
1765 bytes
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:
<41679a62@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4166dd19$1@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: "John McGrath [TeamB]" <ng-b@JPMcGrath.net> Subject: Re: maximise swing application window hides windows taskbar Newsgroups: borland.public.jbuilder.java.swing References: <4166dd19$1@newsgroups.borland.com> User-Agent: XanaNews/1.16.4.6 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 NNTP-Posting-Host: 141.158.43.72 Message-ID: <41679a62@newsgroups.borland.com> Date: 9 Oct 2004 00:59:30 -0700 X-Trace: newsgroups.borland.com 1097308770 141.158.43.72 (9 Oct 2004 00:59:30 -0700) Lines: 26 X-Authenticated-User: jpmcgrath Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail