• Post Reply Bookmark Topic Watch Topic
  • New Topic

fixed size jDialog  RSS feed

 
Maha Hassan
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using netbeans 4 to build guis ...and i want to fix the size of my dialog ..cuz when i run it it opens to a SMALL window..that needs to be draged to resize it ,,,can u please help me how to fix the size of my dialog ..or open with a propper size?
 
Pat Hays
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Maha

Try this code.
-------------
this.setSize(new Dimension(390, 300));
this.setResizable(false);
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!