The Artima Developer Community
Sponsored Link

Java Answers Forum
resizing JFrame

1 reply on 1 page. Most recent reply: Jul 17, 2003 1:24 PM by Anastasia Aourik

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
mike

Posts: 4
Nickname: mikez
Registered: Jul, 2003

resizing JFrame Posted: Jul 16, 2003 9:17 AM
Reply to this message Reply
Advertisement
How do I resize a JFrame? I've tried setSize, and setBounds, but when I run my program, it just shows up as the same size everytime. What to I apply the setSize method to: getContentPane()? this? getRootPane? Any help would help, thanks


Anastasia Aourik

Posts: 2
Nickname: anastasia
Registered: Jul, 2003

Re: resizing JFrame Posted: Jul 17, 2003 1:24 PM
Reply to this message Reply
frame.setSize(...) will work. Just make sure that you are not performing a frame.pack() or it will use the preferred sizes.

Cheers,
Anastasia

Flat View: This topic has 1 reply on 1 page
Topic: jscrollpane Previous Topic   Next Topic Topic: java

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use