Dear all

I get this code from java.sun. I want to sort my columns tables.
But line 3 and 4 are not working.

I use Netbeans and already add JDK 6 to Netbeans platform.

Any suggestion or information from all of you ??

JTable table = new JTable(new MyTableModel());
table.setPreferredScrollableViewportSize(new Dimension(500, 70));
table.setFillsViewportHeight(true);
table.setAutoCreateRowSorter(true);


Thanks,

Kusno

Check your project properties and make sure that in "Libraries" you have selected the 1.6 platform and that in "Sources" you have selected JDK 6 for "Source/Binary Format".