JTable of result, Is its items selectable to invoke another page
ruilin yang
Ranch Hand
Joined: Feb 25, 2001
Posts: 334
posted
0
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
posted
0
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
posted
0
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
posted
0
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
posted
0
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
posted
0
Thanks for all your response.
subject: JTable of result, Is its items selectable to invoke another page