Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2011
    Posts
    23
    Rep Power
    0

    Lightbulb Dynamic JFrame resize

    Hello All,

    I am facing a problem while resizing the JFrame.

    I am having JLabel inside JPanel. When i change the text on the JLabel i want JFrame should be re-sized to see the full content.

    How can i do this?

    Thanks in advance.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,234
    Rep Power
    19

    Default Re: Dynamic JFrame resize

    Java Code:
    pack();
    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. jSplitPane and divider Location after jFrame resize?
    By michalss in forum AWT / Swing
    Replies: 6
    Last Post: 04-21-2011, 12:33 PM
  2. JFrame resize control
    By babis in forum AWT / Swing
    Replies: 3
    Last Post: 08-24-2010, 07:50 AM
  3. can't resize my JLabel
    By gib65 in forum AWT / Swing
    Replies: 10
    Last Post: 06-25-2010, 05:30 AM
  4. Image Resize
    By jithan in forum New To Java
    Replies: 4
    Last Post: 11-07-2008, 09:26 AM
  5. Inconsistent layout w/dynamic resize of components
    By donb2000 in forum AWT / Swing
    Replies: 3
    Last Post: 07-26-2008, 02:40 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
  •