use of com.revolsys.swing.component.BasePanel in project com.revolsys.open by revolsys.
the class AbstractRecordLayer method newPropertiesTabGeneral.
@Override
protected BasePanel newPropertiesTabGeneral(final TabbedValuePanel tabPanel) {
final BasePanel generalPanel = super.newPropertiesTabGeneral(tabPanel);
newPropertiesTabGeneralPanelFilter(generalPanel);
return generalPanel;
}
use of com.revolsys.swing.component.BasePanel in project com.revolsys.open by revolsys.
the class AbstractRecordLayer method newPropertiesPanelFields.
protected void newPropertiesPanelFields(final TabbedValuePanel propertiesPanel) {
final RecordDefinition recordDefinition = getRecordDefinition();
final BaseJTable fieldTable = RecordDefinitionTableModel.newTable(recordDefinition);
final BasePanel fieldPanel = new BasePanel(new BorderLayout());
fieldPanel.setPreferredSize(new Dimension(500, 400));
final JScrollPane fieldScroll = new JScrollPane(fieldTable);
fieldPanel.add(fieldScroll, BorderLayout.CENTER);
propertiesPanel.addTab("Fields", fieldPanel);
}
use of com.revolsys.swing.component.BasePanel in project com.revolsys.open by revolsys.
the class MergeRecordsDialog method initDialog.
protected void initDialog() {
setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
setMinimumSize(new Dimension(600, 100));
addWindowListener(this);
final BasePanel panel = new BasePanel(new BorderLayout());
add(new JScrollPane(panel, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED));
this.mergedRecordsPanel = new JPanel(new VerticalLayout());
panel.add(this.mergedRecordsPanel, BorderLayout.CENTER);
final JPanel buttonsPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT));
add(buttonsPanel, BorderLayout.SOUTH);
final JButton cancelButton = RunnableAction.newButton("Cancel", this::cancel);
buttonsPanel.add(cancelButton);
this.okButton = RunnableAction.newButton("OK", this::finish);
this.okButton.setEnabled(false);
buttonsPanel.add(this.okButton);
pack();
SwingUtil.autoAdjustPosition(this);
}
Aggregations