View Single Post
Old Oct 18th, 2007, 2:31 PM   #2
ReggaetonKing
Sexy Programmer
 
ReggaetonKing's Avatar
 
Join Date: Nov 2005
Location: New Jersey
Posts: 891
Rep Power: 3 ReggaetonKing is on a distinguished road
Send a message via AIM to ReggaetonKing
Re: Visible area insize JFrame

The JPanel and JFrame both inherit the JComponent class which has the method setPreferredSize(). Try that.

java Syntax (Toggle Plain Text)
  1. frmWhatever.setPreferredSize(new Dimension(width, height));
__________________
I would love to change the world, but they won't give me the source code!
ReggaetonKing is offline   Reply With Quote