Re: Java Swing: JFrame Window Maximisation
From: Phaero (johan.segolsson_at_home.se)
Date: 07/10/04
- Next message: Phaero: "Re: Java Swing: JFrame Window Maximisation"
- Previous message: Whats up dog!: "Re: Java Swing: JFrame Window Maximisation"
- In reply to: Whats up dog!: "Re: Java Swing: JFrame Window Maximisation"
- Next in thread: Chris Smith: "Re: Java Swing: JFrame Window Maximisation"
- Reply: Chris Smith: "Re: Java Swing: JFrame Window Maximisation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
>
>
- Next message: Phaero: "Re: Java Swing: JFrame Window Maximisation"
- Previous message: Whats up dog!: "Re: Java Swing: JFrame Window Maximisation"
- In reply to: Whats up dog!: "Re: Java Swing: JFrame Window Maximisation"
- Next in thread: Chris Smith: "Re: Java Swing: JFrame Window Maximisation"
- Reply: Chris Smith: "Re: Java Swing: JFrame Window Maximisation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|