JLabel ipLbl = new JLabel("Enter Host IP address");
JLabel dot0 = new JLabel(".");
JLabel dot1 = new JLabel(".");
JLabel dot2 = new JLabel(".");
MaskFormatter octetFormat = new MaskFormatter("***");
octetFormat.setValidCharacters("0123456789");
octetFormat.setPlaceholderCharacter('0');
octetFormat.setOverwriteMode(true);
final JFormattedTextField oct0 = new JFormattedTextField(octetFormat);
final JFormattedTextField oct1 = new JFormattedTextField(octetFormat);
final JFormattedTextField oct2 = new JFormattedTextField(octetFormat);
final JFormattedTextField oct3 = new JFormattedTextField(octetFormat);
oct0.setColumns(2);
oct1.setColumns(2);
oct2.setColumns(2);
oct3.setColumns(2);
final JLabel portLbl = new JLabel("Enter Host TCP port");
MaskFormatter portFormat = new MaskFormatter("*****");
portFormat.setValidCharacters("0123456789");
portFormat.setPlaceholderCharacter('0');
portFormat.setOverwriteMode(true);
final JFormattedTextField portField = new JFormattedTextField(portFormat);
portField.setText("07777");
JButton join = new JButton("Join Server");
/**