This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Layout

 
Kwesi Prat
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am a beginner in java programming. I want to write a program that has 10 text fields on the left, 10 text field on the right and a "find" button between the text fields on the right and left. Which layout is best for this?
Thank you.
Kwesi.
 
Jason Menard
Sheriff
Posts: 6450
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm going to move this to the Swing / JFC / AWT forum where you stand the best chance of getting it answered.
 
Joe Ess
Bartender
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Swing Tutorial chapter on Layout Managers should help you choose
 
Brian Pipa
Ranch Hand
Posts: 299
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would use a main panel with a horizontal boxlayout then to that add 3 things:
1) the left panel using a vertical boxlayout and 10 text fields
2) a middle panel with the find button (just about any layout)
3) the right panel using a verical boxlayout and 10 text fields
that should get you going
brian
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic