use of javax.swing.border.TitledBorder in project knime-core by knime.
the class RankNodeDialog method initPanel.
private JPanel initPanel() {
JPanel jp = new JPanel();
jp.setLayout(new BoxLayout(jp, BoxLayout.Y_AXIS));
Box rankColSelection = Box.createHorizontalBox();
// add column list
Box rankCols = initRankTableBox();
rankColSelection.add(rankCols);
// add buttons
Box rankButtonBox = initRankButtonBox();
rankColSelection.add(rankButtonBox);
Box groupColSelection = Box.createHorizontalBox();
groupColSelection.add(initGroupTableBox());
groupColSelection.add(initGroupButtonBox());
Box otherOptions = Box.createHorizontalBox();
otherOptions.add(Box.createHorizontalGlue());
Box modusBox = Box.createHorizontalBox();
modusBox.setBorder(new TitledBorder("Ranking Mode"));
modusBox.add(new JLabel("Mode: "));
Box radioPanel = Box.createVerticalBox();
ButtonGroup modusGroup = new ButtonGroup();
m_modusGroup = modusGroup;
for (RankMode rankMode : RankMode.values()) {
JRadioButton radio = new JRadioButton(rankMode.toString());
modusGroup.add(radio);
radioPanel.add(radio);
if (m_rankMode.getStringValue().equals(radio.getText())) {
radio.setSelected(true);
}
}
modusBox.add(radioPanel);
otherOptions.add(modusBox);
otherOptions.add(Box.createHorizontalGlue());
otherOptions.add(initOtherOptionsBox());
otherOptions.add(Box.createHorizontalGlue());
jp.add(rankColSelection);
jp.add(groupColSelection);
jp.add(otherOptions);
otherOptions.revalidate();
otherOptions.repaint();
return jp;
}
use of javax.swing.border.TitledBorder in project vcell by virtualcell.
the class ParameterEstimationRunTaskPanel method getSolverPanel.
/**
* Return the JPanel10 property value.
* @return javax.swing.JPanel
*/
private JPanel getSolverPanel() {
if (solverPanel == null) {
try {
solverPanel = new javax.swing.JPanel();
solverPanel.setBorder(new TitledBorder(GuiConstants.TAB_PANEL_BORDER, "Supported COPASI Methods", TitledBorder.CENTER, TitledBorder.DEFAULT_POSITION, VCellLookAndFeel.defaultFont.deriveFont(Font.BOLD)));
solverPanel.setLayout(new java.awt.GridBagLayout());
optimizationMethodParameterTable = new ScrollTable();
optimizationMethodParameterTableModel = new OptimizationMethodParameterTableModel(optimizationMethodParameterTable);
optimizationMethodParameterTable.setModel(optimizationMethodParameterTableModel);
computeProfileDistributionsCheckBox = new JCheckBox("Compute Profile Distributions");
// TODO: need to implement it later
computeProfileDistributionsCheckBox.setVisible(false);
helpButton = new JButton("Copasi Methods Help");
java.awt.GridBagConstraints gbc = new java.awt.GridBagConstraints();
gbc.gridx = 0;
gbc.gridy = 0;
gbc.weightx = 1.0;
gbc.gridwidth = 2;
gbc.insets = new java.awt.Insets(4, 4, 4, 0);
gbc.anchor = GridBagConstraints.LINE_START;
solverPanel.add(computeProfileDistributionsCheckBox, gbc);
gbc = new java.awt.GridBagConstraints();
gbc.gridx = 0;
gbc.gridy = 1;
gbc.fill = java.awt.GridBagConstraints.HORIZONTAL;
gbc.weightx = 1.0;
gbc.insets = new java.awt.Insets(4, 4, 4, 4);
gbc.gridwidth = 2;
solverPanel.add(getOptimizationMethodComboBox(), gbc);
gbc = new java.awt.GridBagConstraints();
gbc.gridx = 0;
gbc.gridy = 2;
gbc.fill = java.awt.GridBagConstraints.BOTH;
gbc.weightx = 1.0;
gbc.weighty = 1.0;
gbc.insets = new java.awt.Insets(4, 4, 4, 4);
gbc.gridwidth = 2;
solverPanel.add(new JScrollPane(optimizationMethodParameterTable), gbc);
gbc = new java.awt.GridBagConstraints();
gbc.gridx = 0;
gbc.gridy = 3;
gbc.fill = java.awt.GridBagConstraints.HORIZONTAL;
gbc.weightx = 1.0;
gbc.insets = new java.awt.Insets(4, 4, 4, 0);
gbc.anchor = GridBagConstraints.LINE_END;
solverPanel.add(numberOfRunLabel, gbc);
gbc = new java.awt.GridBagConstraints();
gbc.gridx = 1;
gbc.gridy = 3;
gbc.fill = java.awt.GridBagConstraints.HORIZONTAL;
gbc.weightx = 1.0;
gbc.insets = new java.awt.Insets(4, 0, 4, 4);
solverPanel.add(getNumberOfRunComboBox(), gbc);
gbc = new java.awt.GridBagConstraints();
gbc.gridx = 0;
gbc.gridy = 4;
gbc.insets = new java.awt.Insets(4, 0, 4, 0);
gbc.weightx = 1.0;
// gbc.anchor = GridBagConstraints.LINE_END;
solverPanel.add(getSolveButton(), gbc);
gbc = new java.awt.GridBagConstraints();
gbc.gridx = 1;
gbc.gridy = 4;
gbc.insets = new java.awt.Insets(4, 0, 4, 0);
gbc.weightx = 1.0;
gbc.anchor = GridBagConstraints.LINE_START;
solverPanel.add(helpButton, gbc);
} catch (java.lang.Throwable ivjExc) {
handleException(ivjExc);
}
}
return solverPanel;
}
use of javax.swing.border.TitledBorder in project vcell by virtualcell.
the class ParameterEstimationRunTaskPanel method getSolutionPanel.
/**
* Return the JPanel7 property value.
* @return javax.swing.JPanel
*/
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private JPanel getSolutionPanel() {
if (solutionPanel == null) {
try {
solutionPanel = new javax.swing.JPanel();
solutionPanel.setBorder(new TitledBorder(GuiConstants.TAB_PANEL_BORDER, "Solution", TitledBorder.CENTER, TitledBorder.DEFAULT_POSITION, VCellLookAndFeel.defaultFont.deriveFont(Font.BOLD)));
solutionPanel.setLayout(new java.awt.GridBagLayout());
optimizationSolutionParameterTable = new ScrollTable();
optimizationSolutionParameterTableModel = new OptimizationSolutionParameterTableModel(optimizationSolutionParameterTable);
optimizationSolutionParameterTable.setModel(optimizationSolutionParameterTableModel);
JPanel solutionParametersPanel = new JPanel(new BorderLayout());
solutionParametersPanel.add(optimizationSolutionParameterTable.getEnclosingScrollPane(), BorderLayout.CENTER);
optimizationTaskSummaryTable = new ScrollTable();
// optimizationTaskSummaryTable.setTableHeader(null);
optimizationTaskSummaryTableModel = new OptimizationTaskSummaryTableModel(optimizationTaskSummaryTable);
optimizationTaskSummaryTable.setModel(optimizationTaskSummaryTableModel);
JPanel taskSummaryPanel = new JPanel(new BorderLayout());
taskSummaryPanel.add(optimizationTaskSummaryTable.getEnclosingScrollPane(), BorderLayout.CENTER);
JTabbedPane tabbedPane = new JTabbedPane();
solutionParametersPanel.setBorder(GuiConstants.TAB_PANEL_BORDER);
taskSummaryPanel.setBorder(GuiConstants.TAB_PANEL_BORDER);
tabbedPane.addTab("Parameters", solutionParametersPanel);
tabbedPane.addTab("Task Summary", taskSummaryPanel);
int gridy = 0;
GridBagConstraints gbc = new java.awt.GridBagConstraints();
gbc.gridx = 0;
gbc.gridy = gridy;
gbc.gridwidth = 4;
gbc.fill = java.awt.GridBagConstraints.BOTH;
gbc.weightx = 1.0;
gbc.weighty = 1.0;
gbc.insets = new java.awt.Insets(4, 4, 4, 4);
solutionPanel.add(tabbedPane, gbc);
JPanel panel = new javax.swing.JPanel();
panel.setLayout(new java.awt.FlowLayout());
panel.add(getPlotButton());
panel.add(getSaveSolutionAsNewSimButton());
// panel.add(getEvaluateConfidenceIntervalButton()); //TODO: put it back after implemented the confidence interval evaluations
gridy++;
gbc = new java.awt.GridBagConstraints();
gbc.gridx = 0;
gbc.gridy = gridy;
gbc.gridwidth = 4;
gbc.fill = java.awt.GridBagConstraints.BOTH;
gbc.weightx = 1.0;
gbc.insets = new java.awt.Insets(4, 4, 4, 4);
solutionPanel.add(panel, gbc);
} catch (java.lang.Throwable ivjExc) {
handleException(ivjExc);
}
}
return solutionPanel;
}
use of javax.swing.border.TitledBorder in project vcell by virtualcell.
the class NetworkConstraintsPanel method initialize.
private void initialize() {
seedSpeciesLabel = new JLabel();
reactionRulesLabel = new JLabel();
generatedSpeciesLabel = new JLabel();
generatedReactionsLabel = new JLabel();
observablesMapLabel = new JLabel("Observables Map");
somethingInsufficientLabel = new JLabel();
networkConstraintsTable = new EditorScrollTable();
networkConstraintsTableModel = new NetworkConstraintsTableModel(networkConstraintsTable);
networkConstraintsTable.setModel(networkConstraintsTableModel);
getViewGeneratedSpeciesButton().addActionListener(eventHandler);
getViewGeneratedReactionsButton().addActionListener(eventHandler);
getViewObservablesMapButton().addActionListener(eventHandler);
getRefreshMathButton().addActionListener(eventHandler);
getCreateModelButton().addActionListener(eventHandler);
// ------------------------------------------- The 2 group boxes --------------------------
JPanel leftPanel = new JPanel();
Border loweredEtchedBorder = BorderFactory.createEtchedBorder(EtchedBorder.LOWERED);
Border loweredBevelBorder = BorderFactory.createLoweredBevelBorder();
TitledBorder titleTop = BorderFactory.createTitledBorder(loweredEtchedBorder, " Network Constraints ");
titleTop.setTitleJustification(TitledBorder.LEFT);
titleTop.setTitlePosition(TitledBorder.TOP);
TitledBorder titleBottom = BorderFactory.createTitledBorder(loweredEtchedBorder, " Generated Network ");
titleBottom.setTitleJustification(TitledBorder.LEFT);
titleBottom.setTitlePosition(TitledBorder.TOP);
setLayout(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
gbc.gridx = 0;
gbc.gridy = 0;
gbc.weightx = 1;
gbc.weighty = 1;
gbc.fill = GridBagConstraints.BOTH;
gbc.insets = new Insets(5, 3, 2, 1);
add(leftPanel, gbc);
// ------------------------------------------- Populating the left group box ---------------
JPanel top = new JPanel();
JPanel bottom = new JPanel();
top.setBorder(titleTop);
bottom.setBorder(titleBottom);
leftPanel.setLayout(new GridBagLayout());
gbc = new GridBagConstraints();
gbc.gridx = 0;
gbc.gridy = 0;
gbc.weightx = 1.0;
gbc.weighty = 1.0;
gbc.fill = GridBagConstraints.BOTH;
// top, left, bottom, right
gbc.insets = new Insets(5, 2, 2, 3);
leftPanel.add(top, gbc);
gbc = new GridBagConstraints();
gbc.gridx = 0;
gbc.gridy = 1;
gbc.weightx = 0;
gbc.weighty = 0;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.insets = new Insets(5, 2, 2, 3);
leftPanel.add(bottom, gbc);
// we may want to use a scroll pane whose viewing area is the JTable to provide similar look with NetGen Console
JScrollPane p = new JScrollPane(networkConstraintsTable);
p.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
// --- bottom
top.setLayout(new GridBagLayout());
gbc = new GridBagConstraints();
gbc.gridx = 0;
gbc.gridy = 0;
gbc.weightx = gbc.weighty = 1.0;
gbc.fill = GridBagConstraints.BOTH;
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.insets = new Insets(5, 4, 4, 10);
top.add(p, gbc);
// ------------------------------------------- Populating the right group box ------------
// --- top
bottom.setLayout(new GridBagLayout());
int gridy = 0;
gbc = new GridBagConstraints();
gbc.gridx = 0;
gbc.gridy = gridy;
gbc.weightx = 1.0;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.insets = new Insets(6, 4, 4, 10);
bottom.add(generatedSpeciesLabel, gbc);
gbc = new GridBagConstraints();
gbc.gridx = 1;
gbc.gridy = gridy;
// gbc.weightx = 1.0;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.insets = new Insets(6, 4, 4, 10);
bottom.add(getViewGeneratedSpeciesButton(), gbc);
gbc = new GridBagConstraints();
gbc.gridx = 2;
gbc.gridy = gridy;
// gbc.weightx = 1.0;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.insets = new Insets(6, 4, 4, 10);
bottom.add(getRefreshMathButton(), gbc);
gridy++;
gbc = new GridBagConstraints();
gbc.gridx = 0;
gbc.gridy = gridy;
gbc.weightx = 1.0;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.insets = new Insets(4, 4, 4, 10);
bottom.add(generatedReactionsLabel, gbc);
gbc = new GridBagConstraints();
gbc.gridx = 1;
gbc.gridy = gridy;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.insets = new Insets(4, 4, 4, 10);
bottom.add(getViewGeneratedReactionsButton(), gbc);
gbc = new GridBagConstraints();
gbc.gridx = 2;
gbc.gridy = gridy;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.insets = new Insets(4, 4, 4, 10);
bottom.add(getCreateModelButton(), gbc);
gridy++;
gbc = new GridBagConstraints();
gbc.gridx = 0;
gbc.gridy = gridy;
gbc.weightx = 1.0;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.insets = new Insets(4, 4, 4, 10);
bottom.add(observablesMapLabel, gbc);
gbc = new GridBagConstraints();
gbc.gridx = 1;
gbc.gridy = gridy;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.insets = new Insets(4, 4, 4, 10);
bottom.add(getViewObservablesMapButton(), gbc);
gridy++;
gbc = new GridBagConstraints();
gbc.gridx = 0;
gbc.gridy = gridy;
gbc.weightx = 1.0;
gbc.gridwidth = 4;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.insets = new Insets(4, 4, 4, 10);
bottom.add(somethingInsufficientLabel, gbc);
networkConstraintsTable.setDefaultRenderer(String.class, new DefaultScrollTableCellRenderer());
}
use of javax.swing.border.TitledBorder in project vcell by virtualcell.
the class NetworkFreePanel method initialize.
private void initialize() {
speciesLabel = new JLabel("");
speciesMoleculesLabel = new JLabel("");
futureSpeciesLabel = new JLabel("");
reactionsLabel = new JLabel("");
rulesLabel = new JLabel("");
futureRulesLabel = new JLabel("");
molecularTypesLabel = new JLabel("");
futureMolecularTypesLabel = new JLabel("");
observablesLabel = new JLabel("");
futureObservablesLabel = new JLabel("");
rateWarningLabel = new JLabel("");
Border loweredEtchedBorder = BorderFactory.createEtchedBorder(EtchedBorder.LOWERED);
Border loweredBevelBorder = BorderFactory.createLoweredBevelBorder();
JPanel mainPanel = new JPanel();
mainPanel.setLayout(new GridBagLayout());
setLayout(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
gbc.gridx = 0;
gbc.gridy = 0;
gbc.weightx = 1;
gbc.weighty = 1;
gbc.fill = GridBagConstraints.BOTH;
gbc.insets = new Insets(5, 3, 2, 1);
add(mainPanel, gbc);
JPanel left = new JPanel();
TitledBorder titleLeft = BorderFactory.createTitledBorder(loweredEtchedBorder, " Original Physiology ");
titleLeft.setTitleJustification(TitledBorder.LEFT);
titleLeft.setTitlePosition(TitledBorder.TOP);
left.setBorder(titleLeft);
left.setLayout(new GridBagLayout());
gbc = new GridBagConstraints();
gbc.gridx = 0;
gbc.gridy = 0;
gbc.weightx = 0.5;
gbc.weighty = 1.0;
gbc.fill = GridBagConstraints.BOTH;
// top, left, bottom, right
gbc.insets = new Insets(5, 2, 2, 3);
mainPanel.add(left, gbc);
JPanel right = new JPanel();
TitledBorder titleRight = BorderFactory.createTitledBorder(loweredEtchedBorder, " Created Rule-Based Physiology");
titleRight.setTitleJustification(TitledBorder.LEFT);
titleRight.setTitlePosition(TitledBorder.TOP);
right.setBorder(titleRight);
right.setLayout(new GridBagLayout());
gbc = new GridBagConstraints();
gbc.gridx = 1;
gbc.gridy = 0;
gbc.weightx = 0.5;
gbc.weighty = 1.0;
gbc.fill = GridBagConstraints.BOTH;
// top, left, bottom, right
gbc.insets = new Insets(5, 2, 2, 3);
mainPanel.add(right, gbc);
// ================================================= Populating the left group box ===============
int gridy = 0;
gbc = new GridBagConstraints();
gbc.gridx = 0;
gbc.gridy = gridy;
gbc.weightx = 1;
// fake cell used for filling all the vertical empty space
gbc.weighty = 1;
gbc.anchor = GridBagConstraints.WEST;
gbc.insets = new Insets(4, 4, 4, 10);
left.add(new JLabel(""), gbc);
gridy++;
gbc = new GridBagConstraints();
gbc.gridx = 0;
gbc.gridy = gridy;
gbc.weightx = 0;
gbc.anchor = GridBagConstraints.WEST;
// top, left, bottom, right
gbc.insets = new Insets(4, 4, 4, 10);
left.add(new JLabel("Species without molecular structure: "), gbc);
gbc = new GridBagConstraints();
gbc.gridx = 1;
gbc.gridy = gridy;
gbc.weightx = 0;
gbc.anchor = GridBagConstraints.WEST;
gbc.insets = new Insets(4, 4, 4, 10);
left.add(speciesLabel, gbc);
gbc = new GridBagConstraints();
gbc.gridx = 2;
gbc.gridy = gridy;
gbc.weightx = 1.0;
gbc.gridwidth = 2;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.insets = new Insets(4, 4, 4, 10);
left.add(new JLabel(""), gbc);
// -----------------------------------
gridy++;
gbc = new GridBagConstraints();
gbc.gridx = 0;
gbc.gridy = gridy;
gbc.weightx = 0;
gbc.anchor = GridBagConstraints.WEST;
gbc.insets = new Insets(4, 4, 4, 10);
left.add(new JLabel("Reactions: "), gbc);
gbc = new GridBagConstraints();
gbc.gridx = 1;
gbc.gridy = gridy;
gbc.weightx = 0;
gbc.anchor = GridBagConstraints.WEST;
gbc.insets = new Insets(4, 4, 4, 10);
left.add(reactionsLabel, gbc);
// -----------------------------------
gridy++;
gbc = new GridBagConstraints();
gbc.gridx = 0;
gbc.gridy = gridy;
gbc.weightx = 0;
gbc.anchor = GridBagConstraints.WEST;
gbc.insets = new Insets(4, 4, 4, 10);
left.add(new JLabel("Species with molecular structure: "), gbc);
gbc = new GridBagConstraints();
gbc.gridx = 1;
gbc.gridy = gridy;
gbc.weightx = 0;
gbc.anchor = GridBagConstraints.WEST;
gbc.insets = new Insets(4, 4, 4, 10);
left.add(speciesMoleculesLabel, gbc);
// -----------------------------------
gridy++;
gbc = new GridBagConstraints();
gbc.gridx = 0;
gbc.gridy = gridy;
gbc.weightx = 0;
gbc.anchor = GridBagConstraints.WEST;
gbc.insets = new Insets(4, 4, 4, 10);
left.add(new JLabel("Reaction Rules: "), gbc);
gbc = new GridBagConstraints();
gbc.gridx = 1;
gbc.gridy = gridy;
gbc.weightx = 0;
gbc.anchor = GridBagConstraints.WEST;
gbc.insets = new Insets(4, 4, 4, 10);
left.add(rulesLabel, gbc);
// -----------------------------------
gridy++;
gbc = new GridBagConstraints();
gbc.gridx = 0;
gbc.gridy = gridy;
gbc.weightx = 0;
gbc.anchor = GridBagConstraints.WEST;
gbc.insets = new Insets(4, 4, 4, 10);
left.add(new JLabel("Molecules: "), gbc);
gbc = new GridBagConstraints();
gbc.gridx = 1;
gbc.gridy = gridy;
gbc.weightx = 0;
gbc.anchor = GridBagConstraints.WEST;
gbc.insets = new Insets(4, 4, 4, 10);
left.add(molecularTypesLabel, gbc);
// -----------------------------------
gridy++;
gbc = new GridBagConstraints();
gbc.gridx = 0;
gbc.gridy = gridy;
gbc.weightx = 0;
gbc.anchor = GridBagConstraints.WEST;
gbc.insets = new Insets(4, 4, 10, 10);
left.add(new JLabel("Observables: "), gbc);
gbc = new GridBagConstraints();
gbc.gridx = 1;
gbc.gridy = gridy;
gbc.weightx = 0;
gbc.anchor = GridBagConstraints.WEST;
gbc.insets = new Insets(4, 4, 10, 10);
left.add(observablesLabel, gbc);
// ============================================= Populating the right group box =================
gridy = 0;
gbc = new GridBagConstraints();
gbc.gridx = 0;
gbc.gridy = gridy;
gbc.weightx = 1;
gbc.gridwidth = 2;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.anchor = GridBagConstraints.EAST;
gbc.insets = new Insets(4, 4, 2, 10);
right.add(new JLabel(infoText), gbc);
gridy++;
gbc = new GridBagConstraints();
gbc.gridx = 0;
gbc.gridy = gridy;
gbc.weightx = 1;
gbc.gridwidth = 2;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.anchor = GridBagConstraints.EAST;
gbc.insets = new Insets(2, 4, 2, 10);
right.add(rateWarningLabel, gbc);
gridy++;
gbc = new GridBagConstraints();
gbc.gridx = 1;
gbc.gridy = gridy;
// gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.anchor = GridBagConstraints.EAST;
// top, left, bottom, right
gbc.insets = new Insets(10, 4, 4, 10);
right.add(getCreateModelButton(), gbc);
gridy++;
gbc = new GridBagConstraints();
gbc.gridx = 0;
gbc.gridy = gridy;
// fake cell used for filling all the vertical empty space
gbc.weighty = 1;
gbc.anchor = GridBagConstraints.WEST;
gbc.insets = new Insets(4, 4, 4, 10);
right.add(new JLabel(""), gbc);
// ----------------------------
gridy++;
gbc = new GridBagConstraints();
gbc.gridx = 0;
gbc.gridy = gridy;
gbc.weightx = 0;
gbc.anchor = GridBagConstraints.WEST;
// top, left, bottom, right
gbc.insets = new Insets(4, 4, 4, 10);
right.add(new JLabel("Species with molecular structure: "), gbc);
gbc = new GridBagConstraints();
gbc.gridx = 1;
gbc.gridy = gridy;
gbc.weightx = 0;
gbc.anchor = GridBagConstraints.WEST;
gbc.insets = new Insets(4, 14, 4, 10);
right.add(futureSpeciesLabel, gbc);
// --------------------------------
gridy++;
gbc = new GridBagConstraints();
gbc.gridx = 0;
gbc.gridy = gridy;
gbc.weightx = 0;
gbc.anchor = GridBagConstraints.WEST;
gbc.insets = new Insets(4, 4, 4, 10);
right.add(new JLabel("Reaction Rules: "), gbc);
gbc = new GridBagConstraints();
gbc.gridx = 1;
gbc.gridy = gridy;
gbc.weightx = 0;
gbc.anchor = GridBagConstraints.WEST;
gbc.insets = new Insets(4, 14, 4, 10);
right.add(futureRulesLabel, gbc);
// --------------------------------
gridy++;
gbc = new GridBagConstraints();
gbc.gridx = 0;
gbc.gridy = gridy;
gbc.weightx = 0;
gbc.anchor = GridBagConstraints.WEST;
gbc.insets = new Insets(4, 4, 4, 10);
right.add(new JLabel("Molecules: "), gbc);
gbc = new GridBagConstraints();
gbc.gridx = 1;
gbc.gridy = gridy;
gbc.weightx = 0;
gbc.anchor = GridBagConstraints.WEST;
gbc.insets = new Insets(4, 14, 4, 10);
right.add(futureMolecularTypesLabel, gbc);
// ---------------------------------
gridy++;
gbc = new GridBagConstraints();
gbc.gridx = 0;
gbc.gridy = gridy;
gbc.weightx = 0;
gbc.anchor = GridBagConstraints.WEST;
gbc.insets = new Insets(4, 4, 10, 10);
right.add(new JLabel("Observables: "), gbc);
gbc = new GridBagConstraints();
gbc.gridx = 1;
gbc.gridy = gridy;
gbc.weightx = 0;
gbc.anchor = GridBagConstraints.WEST;
gbc.insets = new Insets(4, 14, 10, 10);
right.add(futureObservablesLabel, gbc);
getCreateModelButton().addActionListener(eventHandler);
addFocusListener(eventHandler);
}
Aggregations