Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: keeping the size of the buttons the same

  1. #1
    Junior Member
    Join Date
    Aug 2012
    Thanked 0 Times in 0 Posts

    Default keeping the size of the buttons the same

    hello guys

    I was wondering if i want to keep the size of the buttons the same when resizing the program, how can i code that.
    now when I resize the program the buttons become larger if I maximize the program the reverse is true, so how can I keep the buttons size the same?


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Thanked 832 Times in 772 Posts
    Blog Entries

    Default Re: keeping the size of the buttons the same

    Use the set*Size methods, where * means Preferred, Minimum, and Maximum. If that does not work, then post an SSCCE.

    This thread has been cross posted here:


    Although cross posting is allowed, for everyone's benefit, please read:

    Java Programming Forums Cross Posting Rules

    The Problems With Cross Posting

Similar Threads

  1. [SOLVED] Keeping Track
    By Nuggets in forum Loops & Control Statements
    Replies: 2
    Last Post: April 15th, 2012, 05:37 PM
  2. [SOLVED] Help with keeping the gui one size
    By derekxec in forum AWT / Java Swing
    Replies: 3
    Last Post: July 27th, 2011, 02:43 PM
  3. keeping a tally
    By Neo in forum Java Theory & Questions
    Replies: 3
    Last Post: February 3rd, 2011, 06:36 AM
  4. Limit File Size or Request Size
    By tarek.mostafa in forum Java Servlet
    Replies: 3
    Last Post: June 12th, 2010, 04:28 PM
  5. Limit File Size or Request Size
    By tarek.mostafa in forum JavaServer Pages: JSP & JSTL
    Replies: 3
    Last Post: June 11th, 2010, 07:21 AM