File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes HELP?! set up an iterator & put entries Collection into display List Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "HELP?! set up an iterator & put entries Collection into display List" Watch "HELP?! set up an iterator & put entries Collection into display List" New topic
Author

HELP?! set up an iterator & put entries Collection into display List

Rob Michaelson
Ranch Hand

Joined: Jul 15, 2003
Posts: 36
Hello all,
I have to set up an iterator and put entries Collection into display List for my midAction button I am not sure how to do this.. I know it involves "Iterator count" that's all I can get. Any suggestions?
here is my code so far:

Thanks
Rob
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24166
    
  30

Is this all you need?

[ August 14, 2003: Message edited by: Ernest Friedman-Hill ]

[Jess in Action][AskingGoodQuestions]
Rob Michaelson
Ranch Hand

Joined: Jul 15, 2003
Posts: 36
Hi -
thanks for the code
it is giving me an illegal start of expression
in the {string line = string it.next();}
and do I actually put in "String" and "line"?
Thanks
rob
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24166
    
  30

There was an automatically-inserted smiley in place of a semicolon followed by a close-paren in my original post; I edited my post so the smiley doesn't show up. The code should be exactly correct as shown. "line" is the name of the String variable I've chosen to hold each element of "entries" -- you're free to call it whatever you want.
Note that capitalization (it's spelled "String") matters, and every parenthesis, etc, is significant.
[ August 14, 2003: Message edited by: Ernest Friedman-Hill ]
Rob Michaelson
Ranch Hand

Joined: Jul 15, 2003
Posts: 36
Ahhh
Thank you again for your reply!!
I really appreciate it!
Rob
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HELP?! set up an iterator & put entries Collection into display List
 
Similar Threads
Help! I need help w/ALabel(s) to display messages
HELP?! making an application w/static void main(String []args)
Help with ALabel - or instance variable which will hold an array
HELP?! something weird is going on w/rightAction click
Question about a simple GUI application