aspose file tools*
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
Author

JTable Problem!

Veino Alabama
Greenhorn

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

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

"Frame1.java": Error #: 215 : invalid method declaration; return type required at line 25, column 45
"Frame1.java": 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: http://aspose.com/file-tools
 
subject: JTable Problem!