Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
ruilin yang
Ranch Hand
Posts: 334
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 334
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for you response.
I meant application client GUI, which interacts with server to send inf. and display results.
Ruilin
 
Aleksey Matiychenko
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 334
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for all your response.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic