File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes JTable of result, Is its items selectable to invoke another page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "JTable of result, Is its items selectable to invoke another page" Watch "JTable of result, Is its items selectable to invoke another page" New topic
Author

JTable of result, Is its items selectable to invoke another page

ruilin yang
Ranch Hand

Joined: Feb 25, 2001
Posts: 334
Hi,
I am planning use JTable to display the search results. If I select one of the records in the JTable and click submit button, do you think I can generate the event to get into another page to display the availability inf and to let the user make a booking for the record.
This means that the page is displaying results and meantime as an input collector. I have not used JTable in this way yet, as output disply and input collector.
Please comments on how to implement and how to design the events and listener implementation.
Thanks
Ruilin
Aleksey Matiychenko
Ranch Hand

Joined: Apr 03, 2001
Posts: 178
What do you mean another page? Are you planing to use an applet?
I don't think that this a requirement.
I believe that the application should be standalone.
ruilin yang
Ranch Hand

Joined: Feb 25, 2001
Posts: 334
Thanks for you response.
I meant application client GUI, which interacts with server to send inf. and display results.
Ruilin
Aleksey Matiychenko
Ranch Hand

Joined: Apr 03, 2001
Posts: 178
I still don't get your question. You JTable should probably display available seats column (so you already display availability). If you want to open another frame you can do that by creating an JDialog frame and using that window to book flights.
THe updates to the table should be done through a TableModel which would automatically update the table
Matt Cannata
Greenhorn

Joined: Mar 23, 2001
Posts: 23
Ruilin,
I believe using the CardLayout will give you the effect you're looking for. When the user hits the "submit" button you can handle the event by changing the panel displayed by the CardLayout.
Hope this helps,
Matt
ruilin yang
Ranch Hand

Joined: Feb 25, 2001
Posts: 334
Thanks for all your response.
 
 
subject: JTable of result, Is its items selectable to invoke another page
 
Similar Threads
empty JTable
Questions on JTable
jtable
JTable
jtable