Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Seeting the size of JFrame

 
Leela murthy
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can any body help me setting the size of JFrame to window's(desctop) size

thanks in advance
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JFrame.setExtendedState(JFrame.MAXIMIZED_BOTH);

this sort of question is best answered by looking at the api docs,
particularly "Methods Inherited from..." for Swing components
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic