Results 1 to 6 of 6
- 07-17-2010, 02:40 AM #1
Senior Member
- Join Date
- Jan 2010
- Posts
- 138
- Rep Power
- 0
- 07-17-2010, 02:53 AM #2
Are you asking about using JTable or about a layout of components in a container?
- 07-17-2010, 02:58 AM #3
Senior Member
- Join Date
- Jan 2010
- Posts
- 138
- Rep Power
- 0
yes, I am asking about layout of components in a container.. any idea?
- 07-17-2010, 03:06 AM #4
Look at the GridLayout class.
- 07-17-2010, 03:15 AM #5
Senior Member
- Join Date
- Feb 2010
- Location
- Waterford, Ireland
- Posts
- 748
- Rep Power
- 4
GridBagLayout
- 07-17-2010, 03:24 AM #6
Senior Member
- Join Date
- Jan 2010
- Posts
- 138
- Rep Power
- 0
trying using below codes .. gives me more confusing :(
Java Code:import java.awt.GridLayout;; import java.text.Normalizer.Form; import javax.swing.JButton; public static void main(String args[]) { java.awt.EventQueue.invokeLater(new Runnable() { public void run() { new FrmMain().setVisible(true); createLayout(this); } }); } private static void createLayout(Form frm) { // set form layout GridLayout gridLayout = new GridLayout(3,2); frm.setLayout(gridLayout); frm.add(new JButton("Button 1")); frm.add(new JButton("Button 2")); frm.add(new JButton("Button 3")); frm.add(new JButton("Long-Named Button 4")); frm.add(new JButton("5")); }
Similar Threads
-
How To Add More Rows To Excel Sheet In Java
By JMartins in forum New To JavaReplies: 0Last Post: 12-30-2009, 11:30 PM -
Need a loop for rows and columns
By Ceasar in forum New To JavaReplies: 4Last Post: 10-09-2009, 03:03 PM -
Counting Rows and Columns from Excel Sheet
By Anish in forum Advanced JavaReplies: 3Last Post: 12-24-2008, 06:56 AM -
Two diM aRRay and add rows and columns....
By filly444 in forum New To JavaReplies: 2Last Post: 08-30-2008, 05:24 PM -
How to create a SWT Tree with multi columns
By Java Tip in forum SWTReplies: 0Last Post: 07-07-2008, 04:50 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks