my dog learned polymorphism*
The moose likes Swing / AWT / SWT and the fly likes Regarding JScrollPane,JTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Regarding JScrollPane,JTable" Watch "Regarding JScrollPane,JTable" New topic
Author

Regarding JScrollPane,JTable

kumar shiva
Greenhorn

Joined: Jul 04, 2012
Posts: 12
Hi,

In my project i need to add a JScrollPane to the JTable.

1st process:
In this process am adding JTable to the panel and Jpanel to the frame, i am getting the the table as like setting Boumds.
my requirement is when large data displays i need scrollpane.

so i am using 2nd process

2nd process
In this process am using JScrollpane, am adding JTable to the JscrollPane, JscrollPane to thr Jpanel and Jpanel to the frame.
In this one am getting the result but Table is very less compare to the table in 1st process.

3rd process:
In this one am adding table to the panel, panel to the JScrollpane and JScrollpane to the frame.
by using this process am not getting table on frame.

Any one could you help me.

Thanks,
Shiva

Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
> 3rd process:
> ..
> by using this process am not getting table on frame.

table displays OK for me
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Regarding JScrollPane,JTable
 
Similar Threads
JTable
Resizing of a Component freezes the screen and contents of JTable are greyed
jtable not refreshing
Jtable
JTable in JFrame