Results 1 to 4 of 4
  1. #1
    clydedoris is offline Member
    Join Date
    Feb 2010
    Posts
    80
    Rep Power
    0

    Default doesnt show exact size

    hi!

    when i specify the size of a frame in netbeans, the size of it when i run the project is quite larger than what i specified..

    any help?
    [why are you annoyed with my sig?]

  2. #2
    mine0926 is offline Senior Member
    Join Date
    Apr 2010
    Location
    Philippines
    Posts
    580
    Rep Power
    5

    Default

    Are you using Layout Manager. At design window, netbeans uses FreeDesign Layout manager, the said layout manager is not so friendly because it automatically resize and move objects/component. I suggest you use other layout manager.
    Layout manager
    Last edited by mine0926; 07-13-2010 at 03:49 AM.

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

    Default

    Don't set the size. Set the preferredSize of the JFrame's contentPane if you must, and then call pack() on the JFrame before calling setVisible(true).

  4. #4
    clydedoris is offline Member
    Join Date
    Feb 2010
    Posts
    80
    Rep Power
    0

Similar Threads

  1. JTable doesnt show columun names!
    By phil128 in forum AWT / Swing
    Replies: 3
    Last Post: 03-08-2009, 10:39 PM
  2. Replies: 7
    Last Post: 10-28-2008, 01:41 PM
  3. Replies: 2
    Last Post: 08-01-2008, 02:58 PM
  4. netbeans 6.0 not show commpunent or show blank page
    By fahimaamir in forum NetBeans
    Replies: 1
    Last Post: 01-26-2008, 06:20 AM
  5. Replies: 1
    Last Post: 05-19-2007, 12:03 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
  •