Results 1 to 2 of 2

Thread: frame question

  1. #1
    timkd127 is offline Member
    Join Date
    Dec 2008
    Rep Power

    Default frame question

    Im writing a program that paints a smiley face onto a canvas and then puts it in a frame. My problem is once the frame gets small enough it changes the ratios of the face and it get distorted. Is there any way to make it so a frame can only be minmized to a certain point?

  2. #2
    mrmatt1111's Avatar
    mrmatt1111 is offline Senior Member
    Join Date
    Aug 2009
    San Jose, CA, USA
    Rep Power


    you might try this:

    Java Code:
    this.setMinimumSize(new java.awt.Dimension(250,250));
    Last edited by mrmatt1111; 09-04-2009 at 06:39 PM.
    My Hobby Project: LegacyClone

Similar Threads

  1. Question mark colon operator question
    By orchid in forum Advanced Java
    Replies: 9
    Last Post: 12-19-2010, 08:49 AM
  2. GUI new frame
    By billbo123 in forum New To Java
    Replies: 15
    Last Post: 03-02-2009, 04:24 AM
  3. frame
    By arunkumarinfo in forum NetBeans
    Replies: 0
    Last Post: 02-07-2009, 10:26 AM
  4. Images in AWT frame
    By Urgle in forum New To Java
    Replies: 4
    Last Post: 12-02-2008, 06:37 AM
  5. Frame to other Frame
    By Aswq in forum New To Java
    Replies: 2
    Last Post: 07-19-2008, 04:27 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