Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

swings  RSS feed

 
anu mishra
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
whenever i start my applet it comes at the lower right corner.How can i fix its position at the middle.
 
kenji mapes
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think there is a setLocation method(). Put in the parameters of (x,y) in pixels for the start point; that point should be the upper left of the applet frame. setLocation is in JFrame, and should be in applet too. However I am not positive.

Try it, and let me know if that works.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!