This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android forum!
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
 
 
subject: JTable Problem!
 
Similar Threads
Please Help in sorting JTable on multiple column.
JTable Cell Editor Problem
Updating values in a jTable
Table Header Renderer Issue
problem in JTable