Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Resize JTabel  RSS feed

Jawad Kakar
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Reader,
When I resize my JFrame the size of JTabel stays the same.(I am expecting the size of row as well as the size of cloumn to change, but it does Not happen), Moreover the ScrollPane does not appear either.
I have the following code.
public class MyTable extends JPanel{
protected JTable m_table;
//create the table and its ready ...
JScrollPane ps = new JScrollPane();
Now I use composition to display my table with a few other widgets.
public class MyDisplay extends JFrame{
private JPanel contentPane = new JPanel();
private JPanel tablePane = new JPanel(new
public MyDisplay(){
tablePane.add(new MyTable(),
Thank you very much
[ October 27, 2002: Message edited by: Jawad Kakar ]
[ October 28, 2002: Message edited by: Jawad Kakar ]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!