Search in sources :

Example 1 with TestsTableModel

use of com.sun.identity.diagnostic.base.core.ui.gui.table.TestsTableModel in project OpenAM by OpenRock.

the class TableJPanel method clearAll.

public void clearAll() {
    testsjTable.setEnabled(false);
    TestsTableModel model = (TestsTableModel) testsjTable.getModel();
    model.removeAll();
    Document doc = messagejEditorPane.getDocument();
    try {
        doc.remove(0, doc.getLength());
    } catch (Exception ex) {
        //ex.printStackTrace();
        System.out.println("Exception in TableJPanel :" + ex.getMessage());
    }
    testsjTable.setEnabled(true);
}
Also used : TestsTableModel(com.sun.identity.diagnostic.base.core.ui.gui.table.TestsTableModel) HTMLDocument(javax.swing.text.html.HTMLDocument) Document(javax.swing.text.Document)

Aggregations

TestsTableModel (com.sun.identity.diagnostic.base.core.ui.gui.table.TestsTableModel)1 Document (javax.swing.text.Document)1 HTMLDocument (javax.swing.text.html.HTMLDocument)1