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

AWT Prob

 
Tamana Joshi
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
i wanna put testarea and after then i wanna put 10 buttons, this can i do it?actually i m facing problem in 2 ways
1) how to put more than one panel in one frame
2)if i hav to arrange 2 layout (Border and Grid), how can i put it, like i mean how to define one layout for frame and one for panel?
please help.
thanks in advance
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can call setLayout() on any container (a Frame, a Panel, etc) and thereby install a LayoutManager in that container. If you install one container inside another, then you get nested layouts.

For the example you've given, perhaps you could use the default BorderLayout of a Frame, and a GridLayout in a Panel, something like this:

 
Tamana Joshi
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks
Ernest..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic