Results 1 to 4 of 4
Thread: Cant import RowSorter?
- 11-17-2009, 09:23 PM #1
Member
- Join Date
- Nov 2009
- Posts
- 23
- Rep Power
- 0
Cant import RowSorter?
RowSorter<TableModel> sorter = new TableRowSorter<TableModel>(
haploTable.getModel());
haploTable.setRowSorter(sorter);
this code will not work. Eclipse is not recognizing that RowSorter or TableRowSorter are valid.
i have:
import javax.swing.table.*;
im also on a Mac that says i have the latest version of java and I just recently downloaded Eclipse. What am i doing wrong???
- 11-17-2009, 09:37 PM #2
I'm assuming those are new with Java 6. Check your project properties to make sure you're using the SE 6 or it won't be able to find those.
Liberty has never come from the government.
Liberty has always come from the subjects of government.
The history of liberty is the history of resistance.
The history of liberty is a history of the limitation of governmental power, not the increase of it.
- 11-17-2009, 09:41 PM #3
Member
- Join Date
- Nov 2009
- Posts
- 23
- Rep Power
- 0
How do i do that? I am not quite the java guruu.
- 11-17-2009, 09:52 PM #4
I know when you goto create a new project in Eclipse it gives you the option to select the JDK version to use after you click next. If you right click on your project and click properties I think there's an option called something along the lines of compile options or something. Go in there and see if you can change it so you are using the 1.6 compiler instead of 1.5
Liberty has never come from the government.
Liberty has always come from the subjects of government.
The history of liberty is the history of resistance.
The history of liberty is a history of the limitation of governmental power, not the increase of it.
Similar Threads
-
import packages
By gregorio99 in forum New To JavaReplies: 3Last Post: 11-06-2009, 12:43 PM -
can't import my own class
By Splat in forum New To JavaReplies: 5Last Post: 10-13-2009, 04:53 AM -
Eclipse 3.5<import *.jar -Need help>
By roughjj in forum EclipseReplies: 1Last Post: 09-09-2009, 09:24 AM -
How could i import DLL in NetBeans?
By makpandian in forum NetBeansReplies: 0Last Post: 02-13-2009, 12:53 PM -
import statement.
By diRisig in forum New To JavaReplies: 2Last Post: 02-08-2008, 12:34 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks