Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTable Problem!

 
Veino Alabama
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if you move that code in line 25 to inside some other method, it will work fine
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic