View Single Post
  #2 (permalink)  
Old 12-07-2007, 07:49 PM
hardwired hardwired is offline
Senior Member
 
Join Date: Jul 2007
Posts: 1,222
hardwired is on a distinguished road
FlowLayout was not designed for this. Instead try something like this:
Make a separate JPanel for each row of three JTextFields. Use the default FlowLayout for these panels.
You now have three panels each containing three textFields.
Make another JPanel with a GridLayout with zero rows and one column (new Gridlayout(0,1))and add the three panels to it.
Set the layout for the Applet to BorderLayout and add this panel to the center section of the BorderLayout.
You can make up the lower output component(s) and add them to the south section of the BorderLayout.
This is referred to as using nested layouts.
Reply With Quote