Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2008

    Question Unanswered: how to set the size of JFrame on NetBeans IDE 6.1

    I try to set it at the properties of JFrame, using 'maximumSize' and 'preferredSize', both not work.
    the size had been set automatically.
    I wanted to set it myself, how it should be done?

  2. #2
    Join Date
    Sep 2013
    Go to JFrame properties and in the code tab you will find a field called form 'size form size policy', select 'generate resize' code from the drop down and then set the 'form size' field above in the same tab by giving your desired pixel (width, height) size and you are done.

    Thank you.
    Last edited by billydb; 09-03-13 at 06:43.

Posting Permissions

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