/** * This method initializes this * * @return void */ private void initialize() { this.setSize(300, 200); this.setLayout(new BorderLayout()); this.add(getScrollPane(), BorderLayout.CENTER); }
/** * This is the default constructor */ public ProgressPanel() { super(); initialize(); }
/** * Removes all <code>ProgressMonitor</code>s from the table. */ public void clear() { getModel().clear(); }
/** * This method initializes scrollPane * * @return javax.swing.JScrollPane */ private JScrollPane getScrollPane() { if (scrollPane == null) { scrollPane = new JScrollPane(); scrollPane.setViewportView(getTable()); } return scrollPane; }
/** * This method initializes table * * @return javax.swing.JTable */ private JTable getTable() { if (table == null) { table = new JTable(); table.setModel(getModel()); ProgressBarRenderer.applyTo(table); } return table; }
public ProgressMonitor createProgressMonitor(String title) { return getModel().createProgressMonitor(title); }