pnlWest.add(pnlServer, "width 220, wrap");
pnlWest.add(lblStatus, "width 220");
lblPort = new JLabel(SCUILocale.get("ViewServerMode.lblPort"));
txtPort = new JIntegerField();
btnStart = new JButton(SCUILocale.get("ViewServerMode.btnStart"));
btnStop = new JButton(SCUILocale.get("ViewServerMode.btnStop"));
pnlServer.add(lblPort, "width 50%");
pnlServer.add(txtPort, "width 50%, wrap 10");
pnlServer.add(btnStart, "grow, height 30");
pnlServer.add(btnStop, "grow, height 30");
// CENTRAL PANEL
pnlCentral = new JPanel();
pnlCentral.setLayout(new MigLayout());
add(pnlCentral, BorderLayout.CENTER);
pnlScale = new JPanel();
pnlScale.setLayout(new MigLayout());
pnlScale.setBorder(BorderFactory.createTitledBorder(SCUILocale.get("ViewServerMode.pnlScale")));
pnlCentral.add(pnlScale, "width 100%, height 100%");
lblBaud = new JLabel(SCUILocale.get("ViewServerMode.lblBaud"));
txtBaud = new JIntegerField();
lblDataBits = new JLabel(SCUILocale.get("ViewServerMode.lblDataBits"));
txtDataBits = new JIntegerField();
lblStopBits = new JLabel(SCUILocale.get("ViewServerMode.lblStopBits"));
txtStopBits = new JIntegerField();
lblParity = new JLabel(SCUILocale.get("ViewServerMode.lblParity"));
txtParity = new JIntegerField();
lblStartCharacter = new JLabel(SCUILocale.get("ViewServerMode.lblStartCharacter"));
txtStartCharacter = new JIntegerField();
lblEndCharacter = new JLabel(SCUILocale.get("ViewServerMode.lblEndCharacter"));
txtEndCharacter = new JIntegerField();
lblByteCount = new JLabel(SCUILocale.get("ViewServerMode.lblByteCount"));
txtByteCount = new JIntegerField();
lblReadings = new JLabel(SCUILocale.get("ViewServerMode.lblReadings"));
txtReadings = new JIntegerField();
lblSerialPort = new JLabel(SCUILocale.get("ViewServerMode.lblSerialPort"));
cmbModelSerialPort = new DefaultComboBoxModel<String>();
cmbSerialPort = new JComboBox<String>(cmbModelSerialPort);
btnReadPort = new JButton(SCUILocale.get("ViewServerMode.btnReadPort"));
lblStatusValue = new JLabel();
lblStatusValue.setBorder(BorderFactory.createTitledBorder(BorderFactory.createLineBorder(Color.GRAY), SCUILocale.get("ViewServerMode.lblStatusValue")));
lblStatusValue.setFont(new Font(lblStatusValue.getFont().getName(), Font.BOLD, 16));
lblStatusValue.setHorizontalAlignment(SwingConstants.RIGHT);
lblPortValue = new JLabel();
lblPortValue.setBorder(BorderFactory.createTitledBorder(BorderFactory.createLineBorder(Color.GRAY), SCUILocale.get("ViewServerMode.lblPortValue")));
lblPortValue.setFont(new Font(lblPortValue.getFont().getName(), Font.BOLD, 40));
lblPortValue.setForeground(Color.BLUE);
lblPortValue.setHorizontalAlignment(SwingConstants.RIGHT);
lblStartCutPosition = new JLabel(SCUILocale.get("ViewServerMode.lblStartCutPosition"));
txtStartCutPosition = new JIntegerField();
lblEndCutPosition = new JLabel(SCUILocale.get("ViewServerMode.lblEndCutPosition"));
txtEndCutPosition = new JIntegerField();
lblStabilityIndicatorPosition = new JLabel(SCUILocale.get("ViewServerMode.lblStabilityIndicatorPosition"));
txtStabilityIndicatorPosition = new JIntegerField();
lblStabilityIndicator = new JLabel(SCUILocale.get("ViewServerMode.lblStabilityIndicator"));
txtStabilityIndicator = new JIntegerField();
lblFloatingPoint = new JLabel(SCUILocale.get("ViewServerMode.lblFloatingPoint"));
txtFloatingPoint = new JIntegerField();
pnlScale.add(lblSerialPort, "width 50%");
pnlScale.add(cmbSerialPort, "width 50%");
pnlScale.add(lblByteCount, "width 50%");