Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic