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.
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
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
}
});
Please Help