A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Take Control of Upgrading to Yosemite
Take Control of Automating Your Mac
this week in the
Swing / AWT / SWT
Joined: Nov 17, 2004
Jan 04, 2005 09:53:00
I have 2 tables. I want to display all the tables on the same screen one below the other. I tried adding the each table to a panel. The panels were added to the
, but the tables were not displayed as desired.
JPanel p = new JPanel(); JPanel tablePanel = new JPanel(); p.add(__table); tablePanel.add(__table); __scrollPane.add(p); __scrollPane.add(tablePanel); getContentPane().add(__scrollPane); setSize(new Dimension (200,300)); __scrollPane.setVisible(true);
Joined: Apr 30, 2003
Jan 04, 2005 12:30:00
You should have one
for each table.
subject: JTable problem
Table will not refresh?
Dont understand this initialization issue
How To Keep Space at The Bottom Of My Scrollable JTable
Adding a row in a table
JTable in Headless Mode
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014