Results 1 to 4 of 4
  1. #1
    rokit boy is offline Member
    Join Date
    Feb 2012
    Posts
    35
    Rep Power
    0

    Default How to check the screen size?

    Is there any way to change the screen size so the window show in the center of my screen.

  2. #2
    style is offline Member
    Join Date
    Feb 2012
    Posts
    6
    Rep Power
    0

    Default Re: How to check the screen size?

    Wich Swing GUI Builder are you using?
    In netbeans its very easy,trought the properties window.

  3. #3
    rokit boy is offline Member
    Join Date
    Feb 2012
    Posts
    35
    Rep Power
    0

    Default Re: How to check the screen size?

    I'm using Normal Java code, I use Eclipse.

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,244
    Rep Power
    19

    Default Re: How to check the screen size?

    Quote Originally Posted by rokit boy View Post
    Is there any way to change the screen size so the window show in the center of my screen.
    Make up your mind -- check or change?

    To center a Window setLocationRelativeTo(null)

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. How to check the the size of a pdf file in java ??
    By DMaharana in forum Advanced Java
    Replies: 8
    Last Post: 08-02-2011, 03:16 PM
  2. Move from one screen fto other screen
    By jprgmr75 in forum CLDC and MIDP
    Replies: 0
    Last Post: 01-02-2011, 06:32 PM
  3. Setting frame size to the size of an image
    By Yoruichi in forum AWT / Swing
    Replies: 5
    Last Post: 04-22-2009, 04:37 PM
  4. Blank Screen while navigating from one screen to another
    By mohana.krishna in forum Java Servlet
    Replies: 0
    Last Post: 03-03-2009, 05:03 PM
  5. Prob. with screen resolution and Frame size??
    By SANDY_INDIA in forum AWT / Swing
    Replies: 1
    Last Post: 08-16-2008, 12:51 PM

Posting Permissions

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