Revision 389
added befault button functionality for colonet gui
trunk/code/projects/colonet/ColonetGUI/Colonet.java | ||
---|---|---|
178 | 178 |
txtPort = new JTextField("10123"); |
179 | 179 |
txtPort.setBorder(BorderFactory.createTitledBorder("Port")); |
180 | 180 |
btnConnect = new JButton("Connect"); |
181 |
getRootPane().setDefaultButton(btnConnect); |
|
181 | 182 |
lblConnectionStatus = new JLabel("Status: Offline"); |
182 | 183 |
panelConnect = new JPanel(); |
183 | 184 |
panelConnect.setLayout(new GridLayout(6,1)); |
... | ... | |
1108 | 1109 |
} catch (InterruptedException e) { |
1109 | 1110 |
return; |
1110 | 1111 |
} catch (java.security.AccessControlException e) { |
1111 |
csi.warn("java.security.AccessControlException in WebcamLoader.\n" + |
|
1112 |
"The image cannot be loaded from the specified location.\n" + |
|
1113 |
"Make sure you are accessing this applet from the correct server."); |
|
1112 |
csi.warn("Could not load webcam.\n" + e); |
|
1114 | 1113 |
return; |
1115 | 1114 |
} catch (IOException e) { |
1116 | 1115 |
log.append("IOException while trying to load image."); |
Also available in: Unified diff