Skip to Content.
Sympa Menu

ndt-dev - [ndt-dev] [ndt] r840 committed - Fix issue with checkboxes in option pop up window.

Subject: NDT-DEV email list created

List archive

[ndt-dev] [ndt] r840 committed - Fix issue with checkboxes in option pop up window.


Chronological Thread 
  • From:
  • To:
  • Subject: [ndt-dev] [ndt] r840 committed - Fix issue with checkboxes in option pop up window.
  • Date: Fri, 11 Oct 2013 09:01:27 +0000

Revision: 840
Author:

Date: Fri Oct 11 09:01:16 2013 UTC
Log: Fix issue with checkboxes in option pop up window.
http://code.google.com/p/ndt/source/detail?r=840

Modified:
/branches/applet_usability/Applet/Tcpbw100.java

=======================================
--- /branches/applet_usability/Applet/Tcpbw100.java Thu Oct 10 13:32:52 2013 UTC
+++ /branches/applet_usability/Applet/Tcpbw100.java Fri Oct 11 09:01:16 2013 UTC
@@ -883,7 +883,6 @@
_chkboxDefaultTest = new JCheckBox(

_resBundDisplayMsgs.getString("defaultTests"));
_chkboxDefaultTest.setSelected(true);
- _chkboxDefaultTest.setEnabled(false);
// 3. configure number of tests
SpinnerNumberModel model = new SpinnerNumberModel();
model.setMinimum(new Integer(0));
@@ -2350,17 +2349,17 @@
+ _resBundDisplayMsgs.getString("toRunTest") +
"\n");
// If IPv6 is preferred by Applet user, set property
for any further
// use
- if (_chkboxPreferIPv6.isSelected()) {
- try {
-
System.setProperty("java.net.preferIPv6Addresses",
- "true");
- } catch (SecurityException e) {
- System.err
- .println("Couldn't set system property. Check your security settings.");
- // retain this way for now
- }
- }
- _chkboxPreferIPv6.setEnabled(false);
+ try {
+ System.setProperty("java.net.preferIPv6Addresses",
+ _chkboxPreferIPv6.isSelected() ? "true" : "false");
+
+ System.setProperty("java.net.preferIPv4Stack",
+ _chkboxPreferIPv6.isSelected() ? "false" : "true");
+ } catch (SecurityException e) {
+ System.err
+ .println("Couldn't set system property. Check your security settings.");
+ // retain this way for now
+ }
// create socket to host specified by user and the
default port
ctlSocket = new Socket(sHostName, ctlport);
} catch (UnknownHostException e) {


  • [ndt-dev] [ndt] r840 committed - Fix issue with checkboxes in option pop up window., ndt, 10/11/2013

Archive powered by MHonArc 2.6.16.

Top of Page