Bookmark Topic Watch Topic
  • New Topic

Layout Managers

 
John Kirvan
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Report post to moderator
If I wanted to put two layout managers inside of one frame how might I do that?
 
Marilyn de Queiroz
Sheriff
Posts: 9079
12
  • Mark post as helpful
  • send pies
  • Report post to moderator
Because the Cattle Drive course does not cover GUIs, I'm moving this to the Swing/AWT forum.
 
Henry Addo
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi John
All you have to do is use JPanel then set layout for the JPanel
then add the components to the JPanel.After set the layout for
the JFrame then put the JPanel with the components layed on it on
to the JFrame.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Report post to moderator
Round these parts, posting the same question in multiple forums is bad practice. It can make it rather difficult to follow a conversation, plus folks spend time saying things that were just said.

I'm closing this thread. Please continue in one of the duplicate threads.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!