Cannot resolve symbol

From: Rune Memborg Henriksen (memborg_at_it.dk)
Date: 04/28/04


Date: Wed, 28 Apr 2004 16:53:01 +0200

Hi...

I get the following error when i try to compile my java swing program

error:
CykelProgram_GUI.java [259:1] cannot resolve symbol
symbol : method add (java.lang.String)
location: class javax.swing.JList
            rytterlist.add("Rune");
                      ^
As you can see rytterlist is a JLIst that i am trying to add a String to.

Code:
for(int i=0; i <= cm.tour.DeltagerListe.size(); i++)
{
        rytterlist.add("rune");
}

Hope some one can help with this problem. I is hust regular Strings I want
to add to my jLIst.



Relevant Pages

  • Re: Cannot resolve symbol
    ... > I get the following error when i try to compile my java swing program ... I is hust regular Strings I want ... If you want to make the JList display more items, you need to add those to ...
    (comp.lang.java.gui)
  • Re: My LogGenerator.java wont compile - too many errors - help
    ... There is no visible constructor for File that has no parameters. ... However I don't think your code will run correctly when you get it to compile. ... The logic in the getLogGenerator factory method is not clear, but what I think you are trying to achieve will create many instances of the class, and so break the singleton pattern. ...
    (comp.lang.java.help)
  • Classpath definition (Oh, bother...)
    ... I'm trying to get an application with multiple classes to compile and ... Where YhdistaRivit is the main class (dependent on IkaRivi, ... just results in the compiler giving "cannot resolve symbol" error msg ...
    (comp.lang.java.help)
  • Re: compilation problem
    ... ImprovedUser.java:23: cannot resolve symbol ... symbol: class UserException ... But when you compile from the "root" i.e. ... Fahd Shariff ...
    (comp.lang.java.programmer)
  • cannot resolve symbol
    ... I'm trying to compile a program called ListQuestions.java ... ListQuestions.java:16: cannot resolve symbol ... symbol: class Questions ... Prev by Date: ...
    (comp.lang.java.help)