How to program MDI to maximize to current screen size?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: How to program MDI to maximize to current screen size?

  1. #1
    Lim Wing Hoe Guest

    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
    ---------------------------------------------------------------





  2. #2
    Ruchi Dhar Guest

    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
    >---------------------------------------------------------------
    >
    >
    >
    >



  3. #3
    Lim Wing Hoe Guest

    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





  4. #4
    Paul Clapham Guest

    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?
    >





  5. #5
    Lim Wing Hoe Guest

    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.





Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center