aspose file tools
The moose likes Swing / AWT / SWT and the fly likes applet size Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "applet size" Watch "applet size" New topic
Author

applet size

Brandi Love
Ranch Hand

Joined: Sep 19, 2003
Posts: 133
I have an issue and I'm sure its something silly that I've missed in my code but I can't seem to pinpoint it. Forgive me, I'm still a GUI beginner.

In my run method I'm setting the size for the applet window but when I try to run it it appears to run at some default size and not the size I've set it to be (620, 410). Does anyone see something I might be missing? Could this possibly be an issue with Eclipse and not my code? Code is below, I've bolded where I'm setting the size...

Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
I added a line to the end of your run method

and got this in the console
frame size = java.awt.Dimension[width=620,height=410]
Seems to run okay from the command line (no IDE).
Brandi Love
Ranch Hand

Joined: Sep 19, 2003
Posts: 133
Okay, must be an Eclipse thing. Thanks!
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: applet size
 
Similar Threads
text box - GridBagLayout
close window when new one opens
new window within a program...
fields not formatted correctly
The serializable class does not declare a static final...