Click to See Complete Forum and Search --> : jtable scrollpane
Michael Jin
January 26th, 1999, 01:34 AM
Now I found Jtable have no tableheader in scrollpane.
my program:
Jtable jt;//have defind before.
ScrollPane sc=new ScrollPane();
sc.add(jt);
pls help me!Thank you!
Zafir Anjum
January 26th, 1999, 11:29 AM
You are not getting the header because you are using ScrollPane instead of
JScrollPane. The first is an AWT component whereas the second is a Swing
component.
Use JScrollPane.
Reza Beheshti
January 27th, 1999, 04:30 PM
Michael,
If you are using VCafe and using Symantec's TableDataModel, and your Table data model has no data, the table HEADERs do NOT show, this is a know bug, the current work around is to add a row and remove it.
I hope this helps!
Michael Jin
January 27th, 1999, 07:15 PM
Thank you.
I using JDK1.16 ,JDK1.2 ,JBUILDER2.0.
I can show jtable in scrollpane.but dont show jtable 's jtableheader.
I want get jtable's jtableheader and add jtableheader to scrollpane by hand.
Can be?
Now I can get jtable's jtableheader.but I dont know add jtableheader to scrollpane.
if ok,How can I?
pls help me again.
Thank you very much.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.