Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2009
    Posts
    23
    Rep Power
    0

    Default 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???

  2. #2
    xcallmejudasx's Avatar
    xcallmejudasx is offline Senior Member
    Join Date
    Oct 2008
    Location
    Houston, TX & Flint, MI
    Posts
    609
    Rep Power
    7

    Default

    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.

  3. #3
    Join Date
    Nov 2009
    Posts
    23
    Rep Power
    0

    Default

    How do i do that? I am not quite the java guruu.

  4. #4
    xcallmejudasx's Avatar
    xcallmejudasx is offline Senior Member
    Join Date
    Oct 2008
    Location
    Houston, TX & Flint, MI
    Posts
    609
    Rep Power
    7

    Default

    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

  1. import packages
    By gregorio99 in forum New To Java
    Replies: 3
    Last Post: 11-06-2009, 01:43 PM
  2. can't import my own class
    By Splat in forum New To Java
    Replies: 5
    Last Post: 10-13-2009, 05:53 AM
  3. Eclipse 3.5<import *.jar -Need help>
    By roughjj in forum Eclipse
    Replies: 1
    Last Post: 09-09-2009, 10:24 AM
  4. How could i import DLL in NetBeans?
    By makpandian in forum NetBeans
    Replies: 0
    Last Post: 02-13-2009, 01:53 PM
  5. import statement.
    By diRisig in forum New To Java
    Replies: 2
    Last Post: 02-08-2008, 01:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •