Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Little More GUI Help?

Thread Tools

Little More GUI Help?

SunDevil SunDevil is offline
Junior Member
Join Date: Oct 2006
Location: Hot Phoenix Arizona
Posts: 3
I have an initialize in my UI, and I am trying to read in a file of already existing videos from my video manager below. So when I start my GUI the list should be populated in the GUI. Any ideas? Where am I going wrong?

public void initialize() 
    int size = myList.getModel().getSize();
and my Video Manager:

public List getVideos() 
		if (videos == null) 
			videos = new ArrayList();
			inFile = new Scanner("/home/VideoFile.csv");
			while ( inFile.hasNextLine())
			 line = inFile.nextLine();
			 Scanner tokens = new Scanner(line);
		return videos;
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
1 little 2 little 3 little Kennedys dale Digital Photography 0 03-23-2008 01:03 PM
having a little problem with some code for a little game I am creating. ThaDoctor C++ 3 09-28-2007 03:28 PM
KixForm, a (little) GUI for Ruby / win ? Do Re Mi chel La Si Do Ruby 0 12-29-2005 09:42 PM
KixForm, a (little) GUI for Python + PyWin32 ? Do Re Mi chel La Si Do Python 0 12-29-2005 09:36 PM
little red X in little white box Puzzled Computer Support 8 12-13-2004 09:11 AM