Merge branch 'master' of schwann.lupus:/git/java/org.hwo.ui
commit
c1e2e08f66
|
@ -453,7 +453,7 @@ public class TableMapper extends AbstractTableModel
|
|||
this.sortingEnabled = sortingEnabled;
|
||||
initializeJTable();
|
||||
}
|
||||
|
||||
|
||||
public TableMapperColorSourceInterface getColorSourceInterface() {
|
||||
return colorSourceInterface;
|
||||
}
|
||||
|
|
|
@ -33,6 +33,7 @@ public class SerialPortChooser extends JDialog {
|
|||
{
|
||||
return execute(null);
|
||||
}
|
||||
|
||||
public static NewSerialPort execute(Component parent,String selectedPortName)
|
||||
{
|
||||
SerialPortChooser spc = new SerialPortChooser();
|
||||
|
@ -43,6 +44,9 @@ public class SerialPortChooser extends JDialog {
|
|||
if (selectedPortName != null)
|
||||
spc.setSelectedSerialPort(selectedPortName);
|
||||
|
||||
if (parent != null)
|
||||
spc.setLocationRelativeTo(parent);
|
||||
|
||||
spc.setVisible(true);
|
||||
|
||||
return spc.getSelectedSerialPort();
|
||||
|
|
Loading…
Reference in New Issue