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.


>> REGISTER NOW TO START POSTING


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

Results 1 to 2 of 2

Thread: prevent all possibilities of resizing jframe

  1. #1
    Junior Member
    Join Date
    Apr 2013
    Posts
    26
    My Mood
    Aggressive
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default prevent all possibilities of resizing jframe

    my layout is Absolute and i have jlabel with an image BIGGER than the frame,

    on editor (netbeans) it is fine but the time i ran it the frame is resized according to the label size, and i set the jframe to unresizable.

    any idea there? :/ also i want it in absolute layout only and remain unresizable


  2. #2
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: prevent all possibilities of resizing jframe

    JFrame.setResizable(false); does not stop a layout manager or the code from changing the JFrame's size, it only disables the user's ability to resize the frame.
    post the code so someone can see what is happening and better offer advice

Similar Threads

  1. How to eliminate 0 from possibilities in the Random class?
    By jean28 in forum Java Theory & Questions
    Replies: 5
    Last Post: September 22nd, 2012, 04:52 PM
  2. Prevent object going outside of screen?
    By JakkyD in forum Java Theory & Questions
    Replies: 2
    Last Post: May 7th, 2012, 10:56 AM
  3. Replies: 1
    Last Post: May 5th, 2012, 05:00 PM
  4. Replies: 3
    Last Post: December 21st, 2011, 03:46 PM