Gary Milne

Greenhorn
+ Follow
since Jun 15, 2001
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Gary Milne

Originally posted by Dilipkumar Kalyankar:
Hi,
When user selects the row in Jtable I'm updating
variable "rowSelected". When user clicks on "Book
Tickets" button I'm
displaying input dialog box to accept No. of seats. I have data for
record selected in datainfo variable. I'm not getting any ideas to
update "Available seats" value in datainfo variable with new
value
(Available seats - No. of tickets enter by user ). This datainfo
will
be passed to modify method in data class.
Which is the best place to update Available seats? Client or Server ?
Thanks
Dilip
public void actionPerformed(ActionEvent e) {
String seats = JOptionPane.showInputDialog
(frame, "Please enter number of tickets :");

// Update Seats Availabe for the record selected
datainfo = model.datainfoArray[rowSelected];

}
public void valueChanged(ListSelectionEvent e) {
if(e.getValueIsAdjusting()) return;
ListSelectionModel lsm = (ListSelectionModel)
e.getSource();
int selectedRow = lsm.getMinSelectionIndex();
rowSelected = selectedRow;

}


Hi
I am looking for a java/corba application to book seats on
a bus to run on unix using the Orbacus v3.1.3 orb.
If you can give any help please reply
Gary