Click here to Skip to main content
15,906,708 members
Home / Discussions / Java
   

Java

 
GeneralRe: shock wave Pin
Richard MacCutchan23-Nov-10 0:43
mveRichard MacCutchan23-Nov-10 0:43 
GeneralRe: shock wave Pin
TorstenH.22-Nov-10 23:56
TorstenH.22-Nov-10 23:56 
AnswerRe: shock wave Pin
David Skelly23-Nov-10 1:58
David Skelly23-Nov-10 1:58 
GeneralRe: shock wave Pin
nachiket dave23-Nov-10 2:03
nachiket dave23-Nov-10 2:03 
GeneralRe: shock wave Pin
nachiket dave23-Nov-10 2:06
nachiket dave23-Nov-10 2:06 
GeneralRe: shock wave Pin
Richard MacCutchan23-Nov-10 3:30
mveRichard MacCutchan23-Nov-10 3:30 
QuestionHow to filter arraylist results in servlet-jsp/jsp-servlet? Pin
Alok Sharma ji21-Nov-10 19:40
Alok Sharma ji21-Nov-10 19:40 
AnswerRe: How to filter arraylist results in servlet-jsp/jsp-servlet? Pin
TorstenH.21-Nov-10 21:24
TorstenH.21-Nov-10 21:24 
easy..

i think you're setting the table via a TableModel:
new AbstractTableModel() {
    public String getColumnName(int col) {
        return columnNames[col].toString();
    }

    public int getRowCount() { return rowData.length; }

    public int getColumnCount() { return columnNames.length; }

    public Object getValueAt(int row, int col) {
        return rowData[row][col];
    }

    public boolean isCellEditable(int row, int col)
        { return true; }

    public void setValueAt(Object value, int row, int col) {
        rowData[row][col] = value;
        fireTableCellUpdated(row, col);
    }
}



- While filling the table you can select the rows to be added to the table by a simple mechanism. This would not modify the ArrayList.
- Also you can set up a filtered, temporary ArrayList and give that one to the table.
- check this filtering @ oracle.com JAVA tutorials

Choose your way and keep things easy (comments help...)

regards,
Torsten
I never finish anyth...

GeneralRe: How to filter arraylist results in servlet-jsp/jsp-servlet? Pin
Alok Sharma ji21-Nov-10 23:04
Alok Sharma ji21-Nov-10 23:04 
QuestionBrand New to Java Pin
alrubi0021-Nov-10 5:26
alrubi0021-Nov-10 5:26 
AnswerRe: Brand New to Java Pin
Richard MacCutchan21-Nov-10 6:00
mveRichard MacCutchan21-Nov-10 6:00 
GeneralRe: Brand New to Java Pin
alrubi0021-Nov-10 6:14
alrubi0021-Nov-10 6:14 
GeneralRe: Brand New to Java Pin
Richard MacCutchan21-Nov-10 10:11
mveRichard MacCutchan21-Nov-10 10:11 
GeneralRe: Brand New to Java Pin
Alok Sharma ji21-Nov-10 19:43
Alok Sharma ji21-Nov-10 19:43 
GeneralRe: Brand New to Java Pin
Richard MacCutchan21-Nov-10 22:08
mveRichard MacCutchan21-Nov-10 22:08 
GeneralRe: Brand New to Java Pin
Alok Sharma ji21-Nov-10 23:10
Alok Sharma ji21-Nov-10 23:10 
AnswerRe: Brand New to Java Pin
TorstenH.21-Nov-10 21:16
TorstenH.21-Nov-10 21:16 
AnswerRe: Brand New to Java Pin
Alok Sharma ji21-Nov-10 23:09
Alok Sharma ji21-Nov-10 23:09 
QuestionMessage Removed Pin
20-Nov-10 7:12
mr_plow9920-Nov-10 7:12 
AnswerRe: Help with essentially searching text Pin
Dr.Walt Fair, PE20-Nov-10 12:46
professionalDr.Walt Fair, PE20-Nov-10 12:46 
GeneralMessage Removed Pin
22-Nov-10 5:55
mr_plow9922-Nov-10 5:55 
GeneralRe: Help with essentially searching text Pin
Dr.Walt Fair, PE22-Nov-10 8:08
professionalDr.Walt Fair, PE22-Nov-10 8:08 
GeneralRe: Help with essentially searching text Pin
David Skelly23-Nov-10 1:53
David Skelly23-Nov-10 1:53 
GeneralMessage Removed Pin
23-Nov-10 9:01
mr_plow9923-Nov-10 9:01 
GeneralRe: Help with essentially searching text Pin
David Skelly23-Nov-10 21:51
David Skelly23-Nov-10 21:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.