View Single Post
  #4 (permalink)  
Old 04-23-2008, 03:48 PM
BHCluster BHCluster is offline
Member
 
Join Date: Mar 2008
Posts: 32
BHCluster is on a distinguished road
My main problem is I dont know how to search from FlightReservationMain.java
the code bellow is part where all of the data is being stored.
Code:
private String[] columnNames = { "Flight Id", "Name", "Address", "Tel No.", "Email" }; private Object[][] data = new Object[100][6]; public int getColumnCount() { return columnNames.length; } public int getRowCount() { return data.length; } public String getColumnName(int col) { return columnNames[col]; } public Object getValueAt(int row, int col) { return data[row][col]; } public void setValueAt(Object value, int row, int col) { data[row][col] = value; fireTableCellUpdated(row, col); } }
And I am trying to search it with this code

Code:
jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { } });
Please Help
Reply With Quote