Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 9 of 9

Thread: [Problem] imports javax.swing problem

  1. #1
    Junior Member
    Join Date
    Jun 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default [Problem] imports javax.swing problem

    Hi there,

    I've got a little problem here with the imports :
    The import javax.swing.table.TableRowSorter cannot be resolved
    AND
    The import javax.swing.RowFilter cannot be resolved

    I'm using JBuilder 2007 Enterprise.

    So if anyone knows how to solve this ?

    Tnx


  2. #2
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 294 Times in 227 Posts
    Blog Entries
    4

    Default Re: [Problem] imports javax.swing problem

    Hello Brollie. Welcome to the Java Programming Forums.

    What version of Java are you using?
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

  3. #3
    Junior Member
    Join Date
    Jun 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: [Problem] imports javax.swing problem

    Hi there and thanks

    Uh wel both my project and workspace are on version 6.0
    The strange part was
    That the project had worked before. Then I reinstalled my os to windows 7 (I hated vista to hard), Then installed JBuilder and also the latest java SE version.

  4. #4
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 294 Times in 227 Posts
    Blog Entries
    4

    Default Re: [Problem] imports javax.swing problem

    Hmm.. I have limited exeprience with JBuilder. Not sure why this would of happened. Are you sure your project is set to use Java 6?

    Take a look at: project > properties, 'path' > required libraries.

    Not sure if there is anything there you should set?!
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

  5. #5
    Junior Member
    Join Date
    Jun 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: [Problem] imports javax.swing problem

    Well every jar file, libs and so on are there :s
    So thats what i found so strange :s

  6. #6
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 294 Times in 227 Posts
    Blog Entries
    4

    Default Re: [Problem] imports javax.swing problem

    Are you having issues with other imports or is it just javax.swing?
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

  7. #7
    Junior Member
    Join Date
    Jun 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: [Problem] imports javax.swing problem

    Uhhh no
    Its also the imports :

     
    import javax.swing.DropMode;
     
    import javax.swing.table.TableRowSorter;
    import javax.swing.RowFilter;

    Only those 3

  8. #8
    Junior Member
    Join Date
    Jun 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: [Problem] imports javax.swing problem

    Ok Ive solved it

    I use the JBuilder from borland and when it installs it installs its own version from java the so called 6.0 version.
    After changing the path from the JRE from c:/JBuilder/.../ to c:/programfiles/java/JRE/... it was fixed.
    So the JRE from borland doesn't contains all the JAR's :s

  9. #9
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 294 Times in 227 Posts
    Blog Entries
    4

    Thumbs up Re: [Problem] imports javax.swing problem

    Quote Originally Posted by Brollie View Post
    Ok Ive solved it

    I use the JBuilder from borland and when it installs it installs its own version from java the so called 6.0 version.
    After changing the path from the JRE from c:/JBuilder/.../ to c:/programfiles/java/JRE/... it was fixed.
    So the JRE from borland doesn't contains all the JAR's :s
    Glad you found your answer Brollie!!!
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

Similar Threads

  1. How to Add ActionListener to a JButton in Swing?
    By JavaPF in forum Java Swing Tutorials
    Replies: 17
    Last Post: April 24th, 2013, 05:14 PM
  2. GUI problem with image in java
    By Koâk in forum AWT / Java Swing
    Replies: 6
    Last Post: May 17th, 2009, 04:17 AM
  3. Java program for 2-D Array Maze
    By Peetah05 in forum Collections and Generics
    Replies: 11
    Last Post: May 8th, 2009, 04:30 AM
  4. Printing xml to the console from .wmdb without printing junks
    By John in forum File I/O & Other I/O Streams
    Replies: 9
    Last Post: April 24th, 2009, 03:44 AM
  5. Fixing of bug for simple GreenFoot game.
    By Nkay11 in forum What's Wrong With My Code?
    Replies: 12
    Last Post: April 1st, 2009, 02:17 PM