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.init(null, ListSelectionModel.MULTIPLE_INTERVAL_SELECTION, new DefaultDataModelImplementationDetails(session)); content.add(new JScrollPane(tblGraphFiles.getComponent()), gbc);
public SingleResultController(SingleType singleType, JPanel pnlResults, ISession session) { _pnlResults = pnlResults; try { _singleType = singleType; DetailAttribute[] attributes = DetailAttribute.createDetailtAttributes(singleType.getMappedClassInfo().getAttributes()); _tblDetailsData.init(null, new DefaultDataModelImplementationDetails(session)); _tblDetailsData.show(new ResultDataSet(singleType)); _tblDetailsMetaData.init(null, new DefaultDataModelImplementationDetails(session)); _tblDetailsMetaData.show(new DetailAttributeDataSet(attributes)); pnlResults.removeAll(); pnlResults.add(createTabbedPane(_tblDetailsData, _tblDetailsMetaData, session)); //_scrollPanelResults.setViewportView(new JLabel("Diplaying table for " + singleType.getMappedClassInfo().getClassName())); } catch (DataSetException e) { throw new RuntimeException(e); } }
_table.init(null); JPanel pnlBordered = new JPanel(new GridLayout(1,1)); pnlBordered.add(new JScrollPane(_table.getComponent()));
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)); } }