How to program MDI to maximize to current screen size?
As above pls advice.
--
Best Regards,
Wing Hoe
---------------------------------------------------------------
ICQ: 2213281
Email: winghoe@hotmail.com
www: http://pwp.maxis.net.my/winghoe
---------------------------------------------------------------
Re: How to program MDI to maximize to current screen size?
Are you using swing JInternal Frame for your MDI are do you have any seperate
programs for MDI? If you are using JDesktopPane and JInternalFrame forMDI
you can calculate the JDesktopPane size and accordingly you can resize your
JInternalFrame
"Lim Wing Hoe" <winghoe@hotmail.com> wrote:
>As above pls advice.
>
>
>
>--
>
>
>
>Best Regards,
>Wing Hoe
>---------------------------------------------------------------
>ICQ: 2213281
>Email: winghoe@hotmail.com
>www: http://pwp.maxis.net.my/winghoe
>---------------------------------------------------------------
>
>
>
>
Re: How to program MDI to maximize to current screen size?
There aren't any property settings like JFrame.ICONIFIED or JFrame.MAXIMIZED
etc?
--
Best Regards,
Wing Hoe
---------------------------------------------------------------
ICQ: 2213281
Email: winghoe@hotmail.com
www: http://pwp.maxis.net.my/winghoe
---------------------------------------------------------------
"Ruchi Dhar" <rdhar@verticalnet.com> wrote in message
news:39f49b15@news.devx.com...
>
> Are you using swing JInternal Frame for your MDI are do you have any
seperate
> programs for MDI? If you are using JDesktopPane and JInternalFrame forMDI
> you can calculate the JDesktopPane size and accordingly you can resize
your
> JInternalFrame
Re: How to program MDI to maximize to current screen size?
Now that we know you are using a JFrame... if its name is "frame", then
"frame.getToolkit().getScreenSize()" returns a Dimension containing the
screen size. I expect that JFrame has a setSize() method that takes a
Dimension as parameter, but you could check that in the documentation.
PC2
Lim Wing Hoe <winghoe@hotmail.com> wrote in message
news:39f5c613@news.devx.com...
> There aren't any property settings like JFrame.ICONIFIED or
JFrame.MAXIMIZED
> etc?
>
Re: How to program MDI to maximize to current screen size?
Hmm..that method fills even the taskbar at the bottom of my windows.
If I click on the maximize button, then the window will be maximized while
agreeing to the rule that taskbar will be 'always on top'.
Couldnt find anything in the API documentation. Guess the method is not
available.
Maybe if I have time, I'll try to code it..:)
--
Best Regards,
Wing Hoe
---------------------------------------------------------------
ICQ: 2213281
Email: winghoe@hotmail.com
www: http://pwp.maxis.net.my/winghoe
---------------------------------------------------------------
"Paul Clapham" <pclapham@core-mark.com> wrote in message
news:39f6f13e$1@news.devx.com...
> Now that we know you are using a JFrame... if its name is "frame", then
> "frame.getToolkit().getScreenSize()" returns a Dimension containing the
> screen size. I expect that JFrame has a setSize() method that takes a
> Dimension as parameter, but you could check that in the documentation.