use of cbit.vcell.mapping.gui.InitialConditionsPanel in project vcell by virtualcell.
the class ApplicationSpecificationsPanel method initialize.
@Override
protected void initialize() {
super.initialize();
InitialConditionsPanel initialConditionsPanel = new InitialConditionsPanel();
ModelProcessSpecsPanel modelProcessSpecsPanel = new ModelProcessSpecsPanel();
networkConstraintsPanel = new NetworkConstraintsPanel();
networkFreePanel = new NetworkFreePanel();
MembraneConditionsPanel membraneConditionsPanel = new MembraneConditionsPanel();
// order of calls determines display order
setupTab("Species", initialConditionsPanel);
setupTab("Reaction", modelProcessSpecsPanel);
setupTab("Membrane", membraneConditionsPanel);
setupTab("Network", networkConstraintsPanel);
setupTab("Network-Free", networkFreePanel);
activate(initialConditionsPanel);
activate(modelProcessSpecsPanel);
if (System.getProperty("showMembrane") != null) {
activate(membraneConditionsPanel);
}
JPanel searchPanel = new JPanel();
GridBagLayout gbl_searchPanel = new GridBagLayout();
gbl_searchPanel.columnWeights = new double[] { 0.0, 1.0 };
searchPanel.setLayout(gbl_searchPanel);
JLabel lblNewLabel = new JLabel("Search");
GridBagConstraints gbc_lblNewLabel = new GridBagConstraints();
gbc_lblNewLabel.insets = new Insets(5, 5, 5, 5);
gbc_lblNewLabel.anchor = GridBagConstraints.EAST;
gbc_lblNewLabel.gridx = 0;
gbc_lblNewLabel.gridy = 0;
searchPanel.add(lblNewLabel, gbc_lblNewLabel);
textField_1 = new JTextField();
textField_1.getDocument().addDocumentListener(new DocumentListener() {
@Override
public void removeUpdate(DocumentEvent e) {
searchTable();
}
@Override
public void insertUpdate(DocumentEvent e) {
searchTable();
}
@Override
public void changedUpdate(DocumentEvent e) {
searchTable();
}
});
textField_1.putClientProperty("JTextField.variant", "search");
GridBagConstraints gbc_textField_1 = new GridBagConstraints();
gbc_textField_1.insets = new Insets(5, 5, 5, 5);
gbc_textField_1.weightx = 1.0;
gbc_textField_1.fill = GridBagConstraints.HORIZONTAL;
gbc_textField_1.gridx = 1;
gbc_textField_1.gridy = 0;
searchPanel.add(textField_1, gbc_textField_1);
textField_1.setColumns(10);
add(searchPanel, BorderLayout.SOUTH);
tabbedPane.addChangeListener(new ChangeListener() {
@Override
public void stateChanged(ChangeEvent e) {
searchTable();
}
});
}
Aggregations