Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

applet size

 
Brandi Love
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay, must be an Eclipse thing. Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic