• Post Reply Bookmark Topic Watch Topic
  • New Topic

Using insets to manage Layout.  RSS feed

 
suraya ya'acob
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to use insets instead of using ManagerLayout to manage the components (mostly JPanel, JLabel, Shape and Line) in my frame.

Please sombody guide me with the simple coding.

Tq
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
bit of an example here

http://java.sun.com/developer/onlineTraining/GUI/AWTLayoutMgr/shortcourse.html#insets

but scroll to the top of the page and read it all.

You can do just about anything if you use the right layout manager or
nested layout managers.

if you do use a null layout, have you thought about frame resizing? or
different screen resolutions etc?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!