
Signature
Steve W. Jackson
Montgomery, Alabama
Dear Steve W. Jackson,
>OS X has the Dock, not a "task bar".
Ok, ok, I admit that I am quite ignorant regarding Macs and OS X...
>From now on I'll call that thingy by its truthful name.
> And there's no reason that
>maximizing a window can't overlap the Dock, regardless of its placement
>or whether the user has it set to auto-hide.
Well, there is. In my application a couple of button are at the bottom
of the frame.
Or stated differently: If I open my app in a smaller window, then click
the maximize button,
the frame is maximized and does not overlap the dock. Everything is
like it
should be. My simple question is: How do I do this programmatically in
a
correct fashion?
Bernd
Phaero - 24 Aug 2004 20:44 GMT
> Dear Steve W. Jackson,
>
[quoted text clipped - 21 lines]
>
> Bernd
I had a similar problem on Windows XP when using the standard java
decorations on a JFrame, you could try this but since I don't have a mac
I can't try this myself...
http://www.segolsson.se/index.php?p=6
/Johan
Bernd - 26 Aug 2004 19:25 GMT
> I had a similar problem on Windows XP when using the standard java
> decorations on a JFrame, you could try this but since I don't have a mac
> I can't try this myself...
>
> http://www.segolsson.se/index.php?p=6
Thanks, that did the trick (I added a setBounds).
My working code for OS X is:
GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment();
setMaximizedBounds(env.getMaximumWindowBounds());
setBounds(env.getMaximumWindowBounds());
Bernd