Results 1 to 2 of 2
- 03-11-2008, 12:34 AM #1
Member
- Join Date
- Jan 2008
- Posts
- 16
- Rep Power
- 0
- 03-11-2008, 12:51 AM #2
Set up your gui. You can use an ActionListener added to the entry textField and/or a JButton to start processing the search. In the actionPerformed method read the string in from the entry textField and send it to a search method in which you traverse through the ArrayList and compare the search string with each item in the list. If you find a match set the text in the second textField.
Similar Threads
-
Java Project Trouble: Searching one ArrayList with another ArrayList
By BC2210 in forum New To JavaReplies: 2Last Post: 04-21-2008, 11:43 AM -
characters + strings
By Gilgamesh in forum New To JavaReplies: 3Last Post: 03-02-2008, 09:10 PM -
Comparison of Strings
By Cero.Uno in forum New To JavaReplies: 3Last Post: 02-11-2008, 02:46 AM -
Comparing Strings
By Java Tip in forum Java TipReplies: 0Last Post: 12-03-2007, 09:44 AM -
reversing Strings
By Java Tip in forum Java TipReplies: 0Last Post: 11-11-2007, 08:24 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks