• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Regarding JScrollPane,JTable

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

 
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
> 3rd process:
> ..
> by using this process am not getting table on frame.

table displays OK for me
 
I hired a bunch of ninjas. The fridge is empty, but I can't find them to tell them the mission.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic