Results 1 to 3 of 3
Thread: "Find" screen
- 03-11-2009, 07:35 PM #1
Member
- Join Date
- Mar 2009
- Posts
- 20
- Rep Power
- 0
"Find" screen
I would like to create a screen where a database is searched for a partial name or something, and all possible matches, like full names and addresses, are displayed in a scrollable area, and the user can double-click on one to select it.
I can do the search part, and make scrollable areas, but I'm really not sure how to select a line like that. I suppose I could put little check boxes or something on the left side, but I want to do something that's more like an e-mail program or other database programs I've used.
Thank you for any help.
Greg
-
You could place your resulting Strings into a JList or JTable, and place that into a JScrollPane.
- 03-12-2009, 06:06 PM #3
Member
- Join Date
- Mar 2009
- Posts
- 20
- Rep Power
- 0
A JList looks just like what I'm looking for-- like the problem has been anticipated and solved before I even got to it.
I've been using "Java in 21 Days" as my main tutorial, and the JList isn't even mentioned in there. But I have a big, black book from the library as a secondary reference, and they give sample code.
Now that I know what to look for, I should be okay. Thanks.
Similar Threads
-
Java, Military Format using "/" and "%" Operator!!
By sk8rsam77 in forum New To JavaReplies: 11Last Post: 02-26-2010, 03:03 AM -
MoneyOut.println("It took you (whats wrong?>",year,"<WW?) years to repay the loan")
By soc86 in forum New To JavaReplies: 2Last Post: 01-24-2009, 06:56 PM -
Exception in thread "Thread-22" java.lang.NoClassDefFoundEthen screen just sits there
By bnh14 in forum Java AppletsReplies: 3Last Post: 11-06-2008, 04:24 PM -
the dollar sign "$", prints like any other normal char in java like "a" or "*" ?
By lse123 in forum New To JavaReplies: 1Last Post: 10-20-2008, 07:35 AM -
"Cannont find symbol Constructor" error
By Welsh in forum New To JavaReplies: 7Last Post: 01-25-2008, 12:12 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks