use of jmri.jmrix.cmri.serial.nodeconfig.NodeConfigAction in project JMRI by JMRI.
the class ConnectionConfig method loadDetails.
@Override
public void loadDetails(JPanel details) {
setInstance();
// have to embed the usual one in a new JPanel
JPanel p = new JPanel();
super.loadDetails(p);
details.setLayout(new BoxLayout(details, BoxLayout.Y_AXIS));
details.add(p);
// add another button
JButton b = new JButton("Configure C/MRI nodes");
details.add(b);
b.addActionListener(new NodeConfigAction((CMRISystemConnectionMemo) adapter.getSystemConnectionMemo()));
}
use of jmri.jmrix.cmri.serial.nodeconfig.NodeConfigAction in project JMRI by JMRI.
the class ConnectionConfig method loadDetails.
@Override
public void loadDetails(JPanel details) {
setInstance();
b.addActionListener(new NodeConfigAction((CMRISystemConnectionMemo) adapter.getSystemConnectionMemo()));
if (!additionalItems.contains(b)) {
additionalItems.add(b);
}
super.loadDetails(details);
}
use of jmri.jmrix.cmri.serial.nodeconfig.NodeConfigAction in project JMRI by JMRI.
the class ConnectionConfig method loadDetails.
@Override
public void loadDetails(JPanel details) {
setInstance();
b = new JButton("Configure C/MRI nodes");
b.addActionListener(new NodeConfigAction((CMRISystemConnectionMemo) adapter.getSystemConnectionMemo()));
if (!additionalItems.contains(b)) {
additionalItems.add(b);
}
super.loadDetails(details);
}
Aggregations