File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes applet size Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
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://aspose.com/file-tools
 
subject: applet size
 
Similar Threads
text box - GridBagLayout
fields not formatted correctly
new window within a program...
The serializable class does not declare a static final...
close window when new one opens