public DetailPanel(ISession session) { super(new GridLayout(1,1)); tblDetails = new DataSetViewerTablePanel(); tblDetails.init(null, new DefaultDataModelImplementationDetails(session)); add(new JScrollPane(tblDetails.getComponent())); } }
private DataSetViewerTablePanel createSimpleTable(List<Object[]> allRows, ColumnDisplayDefinition[] columnDisplayDefinitions) { try { SimpleDataSet ods = new SimpleDataSet(allRows, columnDisplayDefinitions); DataSetViewerTablePanel dsv = new DataSetViewerTablePanel(); dsv.init(null, new DefaultDataModelImplementationDetails(_session)); dsv.show(ods); return dsv; } catch (DataSetException e) { throw new RuntimeException(e); } }
private DataSetViewerTablePanel createSimpleTable(List<Object[]> allRows, ColumnDisplayDefinition[] columnDisplayDefinitions) { try { SimpleDataSet ods = new SimpleDataSet(allRows, columnDisplayDefinitions); DataSetViewerTablePanel dsv = new DataSetViewerTablePanel(); dsv.init(null, new DefaultDataModelImplementationDetails(_session)); dsv.show(ods); return dsv; } catch (DataSetException e) { throw new RuntimeException(e); } }
tblGraphFiles = new DataSetViewerTablePanel(); tblGraphFiles.init(null, ListSelectionModel.MULTIPLE_INTERVAL_SELECTION, new DefaultDataModelImplementationDetails(session)); content.add(new JScrollPane(tblGraphFiles.getComponent()), gbc);
_table = new DataSetViewerTablePanel(); _table.init(null); JPanel pnlBordered = new JPanel(new GridLayout(1,1));
SystemPanel() { super(); setLayout(new BorderLayout()); DataSetViewerTablePanel propsPnl = new DataSetViewerTablePanel(); propsPnl.init(null); try { propsPnl.show(new HashtableDataSet(System.getProperties())); } catch (DataSetException ex) { // i18n[AboutBoxDialog.error.systemprops=Error occured displaying System Properties] s_log.error(s_stringMgr.getString("AboutBoxDialog.error.systemprops"), ex); } _memoryPnl = new MemoryPanel(); add(new JScrollPane(propsPnl.getComponent()), BorderLayout.CENTER); add(_memoryPnl, BorderLayout.SOUTH); //setPreferredSize(new Dimension(400, 400)); } }
SystemPanel() { super(); setLayout(new BorderLayout()); DataSetViewerTablePanel propsPnl = new DataSetViewerTablePanel(); propsPnl.init(null); try { propsPnl.show(new HashtableDataSet(System.getProperties())); } catch (DataSetException ex) { // i18n[AboutBoxDialog.error.systemprops=Error occured displaying System Properties] s_log.error(s_stringMgr.getString("AboutBoxDialog.error.systemprops"), ex); } _memoryPnl = new MemoryPanel(); add(new JScrollPane(propsPnl.getComponent()), BorderLayout.CENTER); add(_memoryPnl, BorderLayout.SOUTH); //setPreferredSize(new Dimension(400, 400)); } }