Stewart Etie

Greenhorn
+ Follow
since Apr 28, 2013
Stewart likes ...
Eclipse IDE
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Stewart Etie

Paul Clapham wrote:You mean this JComboBox?



I don't think that can be the case because you don't ever do anything at all with that variable. But... you didn't say anything about what error you were getting, so it's a bit hard for us to debug that error. So could you read our FAQ entry TellTheDetails (<== click that link) and then tell us about the error?



Ok thanks I can be clearer now. Eclipse tell me that the constructor JComboBox(ArrayList<String>) is undefined(I'm even adding item to it in line 54). I expect the code to display the movie names in the JComboBox and I believe that my code for opening up the file is correct. Strange thing is if i used initialized array it works fine.

edit: I forgot to replace movieBox name with movieLists
10 years ago

Paul Clapham wrote:And, welcome to the Ranch!



Thank you

Here is the code:

It has a error when initializing the combo box

10 years ago
I've been trying get textfile in my GUI for a while and nothing is working out. I using JComboBox and recently found out that it wouldn't work that way... My textfile displays a movie,name,price,time and rating for about 4 titles. I can post the code if you want but its a bit messy.
10 years ago