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
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.
Joined: Feb 25, 2001
Thanks for you response. I meant application client GUI, which interacts with server to send inf. and display results. Ruilin
Joined: Apr 03, 2001
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
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