| Author |
JTables & Combo Boxes
|
Tom McAmmond
Ranch Hand
Joined: Feb 16, 2004
Posts: 58
|
|
I've written an application in C#, although it was a year ago, and I'm hoping to port it to Java Swing. But there's something I never figured out how to do in C#... but perhaps in Swing? I'm wondering if there is any good sample code to get me started on integrating combo boxes into JTables. I'd like to fill combo boxes with information from a database AND allow a user to EITHER pick information from the combo box OR enter custom data into the field in the JTable. I realize that the answer might require an entire book on Swing, and I'm kinda hoping so since the previews of this book by Kathy Walrath and Sharon Zakhour look really great JTables can get really complicated, really fast.
|
 |
somkiat puisungnoen
Ranch Hand
Joined: Jul 04, 2003
Posts: 1312
|
|
This for help you to create JCombo in JTable
|
SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
|
 |
Kathy Walrath
Author
Greenhorn
Joined: Apr 26, 2004
Posts: 13
|
|
Hey, I recognize that code! Here's the page that discusses it: http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#combobox
|
Kathy Walrath<br />author, <a href="http://java.sun.com/docs/books/tutorial/" target="_blank" rel="nofollow">The Java Tutorial</a><br />editor, <a href="http://javadesktop.org" target="_blank" rel="nofollow">javadesktop.org</a>
|
 |
somkiat puisungnoen
Ranch Hand
Joined: Jul 04, 2003
Posts: 1312
|
|
Java Tip 102: Add multiple JTable cell editors per column Extend and reuse JTable for property pages
Reference website http://www.javaworld.com/javaworld/javatips/jw-javatip102.html
|
 |
Tom McAmmond
Ranch Hand
Joined: Feb 16, 2004
Posts: 58
|
|
|
Thanks guys! I'll play with that code for a while and see what I can get it to do!
|
 |
 |
|
|
subject: JTables & Combo Boxes
|
|
|