use of javax.swing.JSeparator in project JMRI by JMRI.
the class Apps method fileMenu.
/**
* Create default File menu
*
* @param menuBar Menu bar to be populated
* @param wi WindowInterface where this menu will appear as part of the
* menu bar
*/
protected void fileMenu(JMenuBar menuBar, WindowInterface wi) {
JMenu fileMenu = new JMenu(Bundle.getMessage("MenuFile"));
menuBar.add(fileMenu);
fileMenu.add(new PrintDecoderListAction(Bundle.getMessage("MenuPrintDecoderDefinitions"), wi.getFrame(), false));
fileMenu.add(new PrintDecoderListAction(Bundle.getMessage("MenuPrintPreviewDecoderDefinitions"), wi.getFrame(), true));
// Use Mac OS X native Quit if using Aqua look and feel
if (!(SystemType.isMacOSX() && UIManager.getLookAndFeel().isNativeLookAndFeel())) {
fileMenu.add(new JSeparator());
fileMenu.add(new AbstractAction(Bundle.getMessage("MenuItemQuit")) {
@Override
public void actionPerformed(ActionEvent e) {
handleQuit();
}
});
}
}
use of javax.swing.JSeparator in project knime-core by knime.
the class OptionsPanel method initPanel.
private void initPanel() {
GridBagConstraints gbc = new GridBagConstraints();
gbc.insets = new Insets(5, 5, 5, 5);
gbc.anchor = GridBagConstraints.WEST;
gbc.weightx = 0.0;
gbc.weighty = 0.0;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.gridx = 0;
gbc.gridy = 0;
add(new JLabel("Target Column "), gbc);
gbc.gridx += 1;
gbc.weightx = 1.0;
add(m_targetColumnBox, gbc);
gbc.gridy += 1;
gbc.gridx = 0;
gbc.weightx = 1.0;
gbc.gridwidth = 2;
gbc.anchor = GridBagConstraints.CENTER;
add(new JLabel(""), gbc);
gbc.gridy += 1;
add(new JLabel("Attribute Selection"), gbc);
gbc.gridwidth = 1;
gbc.gridy += 1;
gbc.gridx = 0;
gbc.weightx = 0.0;
add(m_useFingerprintColumnRadio, gbc);
gbc.gridx += 1;
gbc.weightx = 1.0;
add(m_fingerprintColumnBox, gbc);
gbc.gridy += 1;
gbc.gridx = 0;
gbc.weightx = 0.0;
add(m_useOrdinaryColumnsRadio, gbc);
gbc.gridy += 1;
gbc.gridx = 0;
gbc.weightx = 1.0;
gbc.weighty = 1.0;
gbc.gridwidth = 2;
gbc.fill = GridBagConstraints.BOTH;
add(m_includeColumnsFilterPanel2, gbc);
gbc.gridy += 1;
gbc.gridx = 0;
gbc.weightx = 1.0;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.gridwidth = 2;
gbc.anchor = GridBagConstraints.CENTER;
add(new JLabel(""), gbc);
gbc.gridy += 1;
add(new JLabel("Misc Options"), gbc);
gbc.gridwidth = 1;
gbc.gridy += 1;
gbc.gridx = 0;
gbc.weightx = 0.0;
gbc.weighty = 0.0;
add(m_ignoreColumnsWithoutDomainChecker, gbc);
gbc.gridy += 1;
add(m_enableHiliteChecker, gbc);
gbc.gridx += 1;
gbc.weightx = 1.0;
add(m_hiliteCountSpinner, gbc);
// Tree Options
gbc.gridy += 1;
gbc.gridx = 0;
gbc.weightx = 1.0;
gbc.gridwidth = 3;
add(new JSeparator(), gbc);
gbc.gridy += 1;
gbc.gridx = 0;
gbc.weightx = 1.0;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.gridwidth = 2;
gbc.anchor = GridBagConstraints.CENTER;
add(new JLabel("Tree Options"), gbc);
gbc.gridwidth = 1;
// gbc.gridx = 0;
// gbc.weightx = 0.0;
// gbc.gridwidth = 2;
// add(m_useAverageSplitPointsChecker, gbc);
// gbc.gridwidth = 1;
gbc.gridy += 1;
gbc.gridx = 0;
gbc.weightx = 0.0;
gbc.gridwidth = 2;
add(m_useBinaryNominalSplitsCheckBox, gbc);
gbc.gridwidth = 2;
gbc.gridy += 1;
add(new JLabel("Missing value handling"), gbc);
gbc.gridx += 1;
gbc.weightx = 0.0;
add(m_missingValueHandlingComboBox, gbc);
gbc.gridwidth = 1;
gbc.gridy += 1;
gbc.gridx = 0;
gbc.weightx = 0.0;
add(m_maxLevelChecker, gbc);
gbc.gridx += 1;
gbc.weightx = 1.0;
add(m_maxLevelSpinner, gbc);
gbc.gridy += 1;
gbc.gridx = 0;
gbc.weightx = 0.0;
add(m_minNodeSizeChecker, gbc);
gbc.gridx += 1;
gbc.weightx = 1.0;
add(m_minNodeSizeSpinner, gbc);
gbc.gridy += 1;
gbc.gridx = 0;
gbc.weightx = 0.0;
add(m_minChildNodeSizeChecker, gbc);
gbc.gridx += 1;
gbc.weightx = 1.0;
add(m_minChildNodeSizeSpinner, gbc);
// gbc.gridy += 1;
// gbc.gridx = 0;
// gbc.weightx = 0.0;
// add(m_hardCodedRootColumnChecker, gbc);
// gbc.gridx += 1;
// gbc.weightx = 1.0;
// add(m_hardCodedRootColumnBox, gbc);
}
use of javax.swing.JSeparator in project knime-core by knime.
the class EnsembleOptionsPanel method initEnsembleConfigurationPanel.
private void initEnsembleConfigurationPanel() {
GridBagConstraints gbc = new GridBagConstraints();
Insets defaultInsets = new Insets(5, 5, 5, 5);
Insets noYSpaceInsets = new Insets(0, 5, 0, 5);
gbc.insets = defaultInsets;
gbc.anchor = GridBagConstraints.WEST;
gbc.weightx = 0.0;
gbc.weighty = 0.0;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.gridy += 1;
gbc.gridx = 0;
gbc.weightx = 0.0;
gbc.gridwidth = 1;
add(new JLabel("Number of models"), gbc);
gbc.gridwidth = 2;
gbc.gridx += 1;
gbc.weightx = 1.0;
add(m_nrModelsSpinner, gbc);
gbc.gridy += 1;
gbc.gridx = 0;
gbc.weightx = 1.0;
gbc.gridwidth = 3;
add(new JSeparator(), gbc);
gbc.gridy += 1;
gbc.gridx = 0;
gbc.weightx = 0.0;
gbc.gridwidth = 1;
add(new JLabel("Data Sampling (Rows)"), gbc);
gbc.insets = noYSpaceInsets;
gbc.gridx += 1;
add(m_dataFractionPerTreeChecker, gbc);
gbc.gridx += 1;
gbc.weightx = 1.0;
add(m_dataFractionPerTreeSpinner, gbc);
gbc.gridx = 1;
gbc.gridy += 1;
add(new JLabel("Data Sampling Mode"), gbc);
gbc.gridx += 1;
add(m_dataSamplingModeComboBox, gbc);
gbc.weightx = 0.0;
gbc.gridy += 1;
gbc.gridx = 1;
add(m_dataSamplingWithReplacementChecker, gbc);
gbc.gridx += 1;
add(m_dataSamplingWithOutReplacementChecker, gbc);
gbc.insets = defaultInsets;
gbc.gridy += 1;
gbc.gridx = 0;
gbc.weightx = 1.0;
gbc.gridwidth = 3;
add(new JSeparator(), gbc);
gbc.gridy += 1;
gbc.gridx = 0;
gbc.weightx = 0.0;
gbc.gridwidth = 1;
add(new JLabel("Attribute Sampling (Columns)"), gbc);
gbc.insets = noYSpaceInsets;
gbc.gridx += 1;
gbc.weightx = 1.0;
gbc.gridwidth = 2;
add(m_columnFractionNoneButton, gbc);
gbc.gridy += 1;
add(m_columnFractionSqrtButton, gbc);
gbc.gridy += 1;
gbc.gridwidth = 1;
add(m_columnFractionLinearButton, gbc);
gbc.gridx += 1;
add(m_columnFractionLinearTreeSpinner, gbc);
gbc.gridx = 1;
gbc.gridy += 1;
add(m_columnFractionAbsoluteButton, gbc);
gbc.gridx += 1;
add(m_columnFractionAbsoluteTreeSpinner, gbc);
gbc.insets = defaultInsets;
gbc.gridy += 1;
gbc.gridx = 0;
gbc.weightx = 1.0;
gbc.gridwidth = 3;
add(new JLabel(), gbc);
gbc.gridy += 1;
gbc.gridx = 0;
gbc.weightx = 0.0;
gbc.gridwidth = 1;
add(new JLabel("Attribute Selection"), gbc);
gbc.insets = noYSpaceInsets;
gbc.gridx += 1;
gbc.weightx = 1.0;
gbc.gridwidth = 2;
add(m_columnUseSameSetOfAttributesForNodes, gbc);
gbc.gridy += 1;
add(m_columnUseDifferentSetOfAttributesForNodes, gbc);
gbc.insets = defaultInsets;
gbc.gridy += 1;
gbc.gridx = 0;
gbc.weightx = 1.0;
gbc.gridwidth = 3;
add(new JSeparator(), gbc);
gbc.gridy += 1;
gbc.gridx = 0;
gbc.weightx = 0.0;
gbc.gridwidth = 1;
add(m_seedChecker, gbc);
gbc.gridx += 1;
gbc.gridwidth = 2;
gbc.weightx = 1.0;
add(ViewUtils.getInFlowLayout(FlowLayout.LEFT, m_seedTextField, m_newSeedButton), gbc);
}
use of javax.swing.JSeparator in project knime-core by knime.
the class OptionsPanel method initPanel.
private void initPanel() {
GridBagConstraints gbc = new GridBagConstraints();
gbc.insets = new Insets(5, 5, 5, 5);
gbc.anchor = GridBagConstraints.WEST;
gbc.weightx = 0.0;
gbc.weighty = 0.0;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.gridx = 0;
gbc.gridy = 0;
add(new JLabel("Target Column "), gbc);
gbc.gridx += 1;
gbc.weightx = 1.0;
add(m_targetColumnBox, gbc);
gbc.gridy += 1;
gbc.gridx = 0;
gbc.weightx = 1.0;
gbc.gridwidth = 2;
gbc.anchor = GridBagConstraints.CENTER;
add(new JLabel(""), gbc);
gbc.gridy += 1;
add(new JLabel("Attribute Selection"), gbc);
gbc.gridwidth = 1;
gbc.gridy += 1;
gbc.gridx = 0;
gbc.weightx = 0.0;
add(m_useFingerprintColumnRadio, gbc);
gbc.gridx += 1;
gbc.weightx = 1.0;
add(m_fingerprintColumnBox, gbc);
gbc.gridy += 1;
gbc.gridx = 0;
gbc.weightx = 0.0;
add(m_useOrdinaryColumnsRadio, gbc);
gbc.gridy += 1;
gbc.gridx = 0;
gbc.weightx = 1.0;
gbc.weighty = 1.0;
gbc.gridwidth = 2;
gbc.fill = GridBagConstraints.BOTH;
add(m_includeColumnsFilterPanel, gbc);
gbc.gridy += 1;
gbc.gridx = 0;
gbc.weightx = 1.0;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.gridwidth = 2;
gbc.anchor = GridBagConstraints.CENTER;
add(new JLabel(""), gbc);
gbc.gridy += 1;
add(new JLabel("Misc Options"), gbc);
gbc.gridwidth = 1;
gbc.gridy += 1;
gbc.gridx = 0;
gbc.weightx = 0.0;
gbc.weighty = 0.0;
add(m_ignoreColumnsWithoutDomainChecker, gbc);
gbc.gridy += 1;
add(m_enableHiliteChecker, gbc);
gbc.gridx += 1;
gbc.weightx = 1.0;
add(m_hiliteCountSpinner, gbc);
// Tree Options
gbc.gridy += 1;
gbc.gridx = 0;
gbc.weightx = 1.0;
gbc.gridwidth = 3;
add(new JSeparator(), gbc);
gbc.gridy += 1;
gbc.gridx = 0;
gbc.weightx = 1.0;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.gridwidth = 2;
gbc.anchor = GridBagConstraints.CENTER;
add(new JLabel("Tree Options"), gbc);
gbc.gridwidth = 1;
// gbc.gridx = 0;
// gbc.weightx = 0.0;
// gbc.gridwidth = 2;
// add(m_useAverageSplitPointsChecker, gbc);
// gbc.gridwidth = 1;
gbc.gridy += 1;
gbc.gridx = 0;
gbc.weightx = 0.0;
add(m_maxLevelChecker, gbc);
gbc.gridx += 1;
gbc.weightx = 1.0;
add(m_maxLevelSpinner, gbc);
gbc.gridy += 1;
gbc.gridx = 0;
gbc.weightx = 0.0;
add(m_minNodeSizeChecker, gbc);
gbc.gridx += 1;
gbc.weightx = 1.0;
add(m_minNodeSizeSpinner, gbc);
gbc.gridy += 1;
gbc.gridx = 0;
gbc.weightx = 0.0;
add(m_minChildNodeSizeChecker, gbc);
gbc.gridx += 1;
gbc.weightx = 1.0;
add(m_minChildNodeSizeSpinner, gbc);
// gbc.gridy += 1;
// gbc.gridx = 0;
// gbc.weightx = 0.0;
// add(m_hardCodedRootColumnChecker, gbc);
// gbc.gridx += 1;
// gbc.weightx = 1.0;
// add(m_hardCodedRootColumnBox, gbc);
// Forest Options
// Insets defaultInsets = new Insets(5, 5, 5, 5);
// Insets noYSpaceInsets = new Insets(0, 5, 0, 5);
//
// gbc.gridy += 1;
// gbc.gridx = 0;
// gbc.weightx = 1.0;
// gbc.gridwidth = 3;
// add(new JSeparator(), gbc);
//
// gbc.gridy += 1;
// gbc.gridx = 0;
// add(new JLabel("Forest Options"), gbc);
// gbc.gridwidth = 1;
//
// gbc.gridy += 1;
// gbc.gridx = 0;
// gbc.weightx = 0.0;
// gbc.gridwidth = 1;
// add(new JLabel("Attribute Sampling (Columns)"), gbc);
// gbc.insets = noYSpaceInsets;
// gbc.gridx += 1;
// gbc.weightx = 1.0;
// gbc.gridwidth = 2;
// add(m_columnFractionNoneButton, gbc);
// gbc.gridy += 1;
// add(m_columnFractionSqrtButton, gbc);
// gbc.gridy += 1;
// gbc.gridwidth = 1;
// add(m_columnFractionLinearButton, gbc);
// gbc.gridx += 1;
// add(m_columnFractionLinearTreeSpinner, gbc);
// gbc.gridx = 1;
// gbc.gridy += 1;
// add(m_columnFractionAbsoluteButton, gbc);
// gbc.gridx += 1;
// add(m_columnFractionAbsoluteTreeSpinner, gbc);
// gbc.insets = defaultInsets;
//
// gbc.gridy += 1;
// gbc.gridx = 0;
// gbc.weightx = 1.0;
// gbc.gridwidth = 3;
// add(new JLabel(), gbc);
//
// gbc.gridy += 1;
// gbc.gridx = 0;
// gbc.weightx = 0.0;
// gbc.gridwidth = 1;
// add(new JLabel("Attribute Selection"), gbc);
// gbc.insets = noYSpaceInsets;
// gbc.gridx += 1;
// gbc.weightx = 1.0;
// gbc.gridwidth = 2;
// add(m_columnUseSameSetOfAttributesForNodes, gbc);
// gbc.gridy += 1;
// add(m_columnUseDifferentSetOfAttributesForNodes, gbc);
// gbc.insets = defaultInsets;
//
// gbc.gridy += 1;
// gbc.gridx = 0;
// gbc.weightx = 0.0;
// gbc.gridwidth = 1;
// add(m_seedChecker, gbc);
// gbc.gridx += 1;
// gbc.gridwidth = 2;
// gbc.weightx = 1.0;
// add(ViewUtils.getInFlowLayout(FlowLayout.LEFT, m_seedTextField, m_newSeedButton), gbc);
}
use of javax.swing.JSeparator in project knime-core by knime.
the class CreateTempDirectoryNodeDialogPane method initLayout.
private JPanel initLayout() {
JPanel p = new JPanel(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
gbc.insets = new Insets(5, 5, 5, 5);
gbc.anchor = GridBagConstraints.WEST;
gbc.fill = GridBagConstraints.BOTH;
gbc.weightx = 0;
gbc.weighty = 0;
gbc.gridx = 0;
gbc.gridy = 0;
p.add(new JLabel("Directory base name"), gbc);
gbc.gridx += 1;
gbc.weightx = 1;
p.add(m_baseNameField, gbc);
gbc.gridx = 0;
gbc.gridy += 1;
gbc.weightx = 0;
p.add(new JLabel("Export path as (variable name)"), gbc);
gbc.gridx += 1;
gbc.weightx = 1;
p.add(m_variableName, gbc);
gbc.gridy += 1;
gbc.gridx = 0;
gbc.gridwidth = 2;
p.add(m_deleteOnResetChecker, gbc);
gbc.gridy += 1;
p.add(new JSeparator(), gbc);
gbc.gridy += 1;
p.add(new JLabel("Additional path variables"), gbc);
gbc.gridy += 1;
gbc.weighty = 1;
m_flowPairPanel.getTable().setPreferredScrollableViewportSize(null);
p.add(m_flowPairPanel, gbc);
return p;
}
Aggregations