Results 1 to 3 of 3
Like Tree1Likes
  • 1 Post By Fubarable

Thread: Centering form in Netbeans

  1. #1
    drimades is offline Member
    Join Date
    Mar 2012
    Posts
    27
    Rep Power
    0

    Default Centering form in Netbeans

    Which property should I change in a form to display it centered in the screen?

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: Centering form in Netbeans

    I know of no "property", but after packing your JFrame (or whatever window it is), you can call setLocationRelativeTo(null) on the JFrame, and this will center it.
    DarrylBurke likes this.

  3. #3
    drimades is offline Member
    Join Date
    Mar 2012
    Posts
    27
    Rep Power
    0

Similar Threads

  1. centering an applet
    By smithdennis4 in forum New To Java
    Replies: 1
    Last Post: 09-22-2011, 12:44 AM
  2. Netbeans form wizard
    By garrym in forum New To Java
    Replies: 1
    Last Post: 04-13-2011, 11:46 PM
  3. Replies: 0
    Last Post: 12-28-2010, 09:05 AM
  4. Netbeans Master/Detail form and TableSorter
    By jmlee in forum NetBeans
    Replies: 0
    Last Post: 01-14-2010, 08:12 PM
  5. setting background color of JFrame form with NetBeans 6.1
    By onefootswill in forum New To Java
    Replies: 4
    Last Post: 08-12-2008, 07:02 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
  •