File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes JTable Problem! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "JTable Problem!" Watch "JTable Problem!" New topic

JTable Problem!

Veino Alabama

Joined: Jun 05, 2005
Posts: 1
Im trying to do JTable whit colums, but I get errors:

line25: jTable1.setPreferredScrollableViewportSize(new Dimension(500, 70));

"": Error #: 215 : invalid method declaration; return type required at line 25, column 45
"": Error #: 203 : illegal start of type at line 25, column 46

miguel lisboa
Ranch Hand

Joined: Feb 08, 2004
Posts: 1281
if you move that code in line 25 to inside some other method, it will work fine

java amateur
I agree. Here's the link:
subject: JTable Problem!
It's not a secret anymore!