This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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

Win a copy of Head First Android this week in the Android forum!
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!