The Artima Developer Community
Sponsored Link

Java Answers Forum
problems with Lists in Frames

2 replies on 1 page. Most recent reply: Jun 11, 2002 12:26 AM by jake

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
jake

Posts: 83
Nickname: onorok
Registered: May, 2002

problems with Lists in Frames Posted: Jun 10, 2002 7:15 PM
Reply to this message Reply
Advertisement
I am making this bank program, and the main screen has a list in it. I want to be able to put stuff in that list from another class. Why wont this work....

this is what I did:

public static List bankname;
bankname=new List();

and I am getting these errors:

--------------------Configuration: JDK version 1.3 <Default>------------------------------------------------
C:\Program Files\Xinox Software\JCreator\MyProjects\NorthField Bank\Main_menu.java:9: <identifier> expected
bankmain=new List();//field.
^
C:\Program Files\Xinox Software\JCreator\MyProjects\NorthField Bank\Main_menu.java:9: cannot resolve symbol
symbol : class bankmain
location: class Main_menu
bankmain=new List();//field.
^
2 errors
Process completed.


abhijeet

Posts: 21
Nickname: sony
Registered: May, 2002

Re: problems with Lists in Frames Posted: Jun 10, 2002 10:06 PM
Reply to this message Reply
Hi Jake,

Check the name of the List. You have declared the List name as "bankname". Where did you declared the another List "bankmain"?

abhijeet.

jake

Posts: 83
Nickname: onorok
Registered: May, 2002

Re: problems with Lists in Frames Posted: Jun 11, 2002 12:26 AM
Reply to this message Reply
your right it was just a misspelled error.... I love those kind of errors!

Flat View: This topic has 2 replies on 1 page
Topic: CLASSPATHs in Win98. Previous Topic   Next Topic Topic: char array / binary search

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use