Merge branch 'master' of schwann.lupus:/git/java/org.hwo.ui

thobaben_diagram
Harald Wolff 2016-09-15 10:26:08 +02:00
commit 1963bb40e0
2 changed files with 6 additions and 2 deletions

View File

@ -30,6 +30,7 @@ public class JObjectSelector extends JDialog {
JObjectSelector os = new JObjectSelector();
os.setItems(items);
os.setVisible(true);
os.dispose();
return os.selectedItem;
}

View File

@ -128,8 +128,11 @@ public class SerialPortChooser extends JDialog {
private void accept()
{
selectedSerialPort = new NewSerialPort(cbPortList.getSelectedItem().toString());
setVisible(false);
String portName = (String)cbPortList.getSelectedItem();
if (portName != null){
selectedSerialPort = new NewSerialPort(portName);
setVisible(false);
}
}
private void cancel()