• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to Positioning a Frame??  RSS feed

 
Ajay Singhal
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi! friends
i want to position my frame on the screen at a specific position.
what is the method of positioning a frame at a specific position.
i also want to fix the size of the frame so that noone will be able to resize the frame . neither minimize nor maximize.
reply with a hint!!
Ajay Singhal

------------------
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ajay,
Look into the setBounds(int x, int y, int width, int height) method in the Component class, which Frame inherits from... And the setResiable(boolean resizable)method in Frame... they should answer all your questions...
HTH,
-Nate
[This message has been edited by Nathan Pruett (edited February 02, 2001).]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!