Re: Java Swing: JFrame Window Maximisation

From: Phaero (johan.segolsson_at_home.se)
Date: 07/10/04


Date: Sat, 10 Jul 2004 14:37:22 GMT

It seems like it's is a bug in javas look and feel, if I call
JFrame.setDefaultLookAndFeelDecorated(true) then the frame will cover
the taskbar and if I don't call it and use the default decoration for
windows xp then it won't cover the taskbar.

I'll try to look in the bug databas at sun for a workaround if nobody
here is fast enough to post one...

/Johan

BTW setUnDecorated don't apear to work either if
JFrame.setDefaultLookAndFeelDecorated(true) is called.

Whats up dog! wrote:

> "Chris Smith" <cdsmith@twu.net> wrote in message
> news:MPG.1b5996565c1d33b09896ed@news.altopia.net...
>
>>Whats up dog! wrote:
>>
>>>I have a JFrame that I would like to maximize automatically on execution
>>>(without clicking on the maximise button). The problem is that when it
>>>maximises to screen size, and goes over the windows taskbar. Is there a
>
> way
>
>>>of doing this without hard coding it? Sample code would be nice.
>>
>>Yes, you can maximize a window without manually setting the size. Just
>>do this in an AWT Frame or any subclass.
>>
>> setExtendedState(getExtendedState() | MAXIMIZE_BOTH);
>
>
>
> i assume the states dont worked on windowsXP since nothing happens -
> according to doc.
>
> anyone can verify?
>
>
> AaA
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.716 / Virus Database: 472 - Release Date: 5/07/2004
>
>



Relevant Pages

  • Re: Missing icons in the notification area
    ... Only a lesser mortal responding. ... as regards Windows XP. ... recheck Lock the Taskbar, click on Apply and OK at the next Window ... This bug in XP will never be fixed. ...
    (microsoft.public.windowsxp.basics)
  • Re: Realbasic 2005r2 Bugs (Ive personally found so far)
    ... doesn't yet support the shortcuts fully unless ... > Number 4 is not a bug that's what it's suppose to do. ... The Windows taskbar has NOTHING to do with an independant form! ...
    (comp.lang.basic.realbasic)
  • Taskbar wideness resets every time after restarting Windows
    ... I have a little problem with my taskbar in Windows. ... So, then I unlock the taskbar, enlarge the wideness, and relock ... think that it is really a bug in Windows itself. ...
    (microsoft.public.windowsxp.configuration_manage)
  • Re: Windows XP Taskbar Silliness
    ... Has been a bug for great while. ... HeldUp is the easiest way to stop windows from disappearing behind other ... Customize Auto Hide Taskbar Settings Right hand side ... I am experiencing this behavior on my desktop and on my laptop both. ...
    (microsoft.public.windowsxp.general)
  • Re: Applications "buying" resources
    ... Video has frame rates. ... Why assume the "bug" lies in the application? ... Thus the kernel can isolate the buggy tasks ... unlikely) case that crashes my code, just because I simply have no idea ...
    (comp.arch.embedded)