Results 1 to 3 of 3
  1. #1
    keffie91's Avatar
    keffie91 is offline Member
    Join Date
    Jun 2008
    Location
    The Netherlands
    Posts
    35
    Blog Entries
    1
    Rep Power
    0

    Default [SOLVED] open a program full size

    Hello, I am writing a programming editor, and now i want to let the program start up fullscreen. I think of getScreenSize() or something, but i actually don't really know. Can anybody give me some hints?

    thanks keffie91
    Never give up! ;)

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,329
    Rep Power
    25

    Default

    Look at the API doc for JFrame. There is a method that will set it to the max state using the MAXIMIZED_BOTH arg.

  3. #3
    keffie91's Avatar
    keffie91 is offline Member
    Join Date
    Jun 2008
    Location
    The Netherlands
    Posts
    35
    Blog Entries
    1
    Rep Power
    0

    Default

    setExtendedState(JFrame.MAXIMIZED_BOTH);

    I have added this small piece of code and it works perfect
    for me.

    Thanks

    keffie91
    Never give up! ;)

Similar Threads

  1. Replies: 2
    Last Post: 08-01-2008, 02:58 PM
  2. Open a shell maximized (full screen)
    By Java Tip in forum SWT
    Replies: 0
    Last Post: 07-25-2008, 02:27 PM
  3. To open an image file such as Jpeg file using JAva Program
    By itmani2020 in forum Advanced Java
    Replies: 10
    Last Post: 07-11-2008, 09:57 AM
  4. how to set full screen dimensions
    By valery in forum New To Java
    Replies: 1
    Last Post: 08-03-2007, 06:08 PM
  5. Full screen
    By Jack in forum Advanced Java
    Replies: 2
    Last Post: 07-02-2007, 05:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •