Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8146331

[macosx] Bug in List Selection capability with Mouse on Mac OS-X version of Java

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Other
    • Icon: P4 P4
    • None
    • 8u65
    • client-libs

      FULL PRODUCT VERSION :
      java version "1.8.0_65"
      Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
      Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)


      ADDITIONAL OS VERSION INFORMATION :
      Mac OS-X 10.10.5

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      MacBook Air 4,2

      A DESCRIPTION OF THE PROBLEM :
      I’m trying to run the stand alone java program “JavaFoil” the main page for which is here:

      http://www.mh-aerotools.de/airfoils/javafoil.htm

      The application can be downloaded from a link about half way down the same page copied here for your convenience :

      http://www.mh-aerotools.de/airfoils/java/ws/javafoil.jnlp

      However, there is a caveat about if you want to run the app stand-alone (which I do because of wanting to save files and the like which you cannot do with the Applet) then they suggest looking at the instructions at the very bottom (and they DO mean the VERY bottom: you will need to scroll) of the following page:

      http://www.mh-aerotools.de/airfoils/javafoil.htm
      And click on "The Applet" selection from the left sidebar all the way at the bottom for the left sidebar.

      There Down near the bottom of the bottom of that page, under “On Unix Systems” there is a link to a shell file

      http://www.mh-aerotools.de/airfoils/java/javafoilinstaller.sh

      This allows you to then install the JavaFoil application.

      Once the program runs, if you go and enter two airfoils, and then go to the "Modify" Tab, you will see two airfoils listed in the "Elements" list on the right side of the Modify Tab window, HOWEVER ON MAC OS-X YOU CANNOT SELECT BOTH THE "1" AND THE "2" AIRFOILS TOGETHER. You can only select one or the other. On a WINTEL platform one CAN select both together (shift click). This is important because to analyze multiple airfoils one must be able to select both. On Mac OS-X Java, there appears to be a bug that prevents the user from selecting both of the Airfoils. The WINTEL version does not have this problem.

      ADDITIONAL REGRESSION INFORMATION:
      Latest Java and SDK as of circa 1 Nov 2015:

      java version "1.8.0_65"
      Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
      Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      First, copy the file listing shown in the "Source Code" text field of this bug report and past it into a .txt file called "Double_Foil" (the name is not important but the .txt is).

      With the stand alone version of JavaFoil installed and open on Mac OS-X click the Open button on the bottom of the "Geometry" Tab panel, and import the "Double_Foil" airfoil data file mentioned above. Click the "Update View" button at the left bottom of the "Geometry" Tab and you should see two airfoil outlines in the graphic display panel.

      Now, click on the "Modify" Tab. Note that there are two entries, "1" and "2" in the "Elements" list box on the right upper part of the window. These correspond to the two Airfoils shown in the graphics panel. When you click "1" one of the airfoils is highlighted, and when you click on "2" the other is highlighted.

      Now, try to select BOTH "1" AND "2". You can't! It will not allow you to select both of the listings. HOWEVER, to run the analysis on both airfoils as called for in the instructions, one MUST select BOTH "1" and "2". On the Mac version of Java one simply cannot select both. HOWEVER, on the Windows version of Java with JavaFoil there is NO trouble to select both "1" and "2" simultaneously, resulting in both airfoils being highlighted in the graphics panel.

      THAT IS THE BUG.

      (note that the web version of the applet is not addressed here although the behavior is similar if not identical).

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      I expect to be able to shift click or control click or drag across the two "Element" entries described above and select and highlight both of them or alternatively still select one or the other as I can do now.
      ACTUAL -
      See above. Actual result is that on Mac OS-X, JavaFoil does not permit one to select multiple entries in the "Elements" list box, whereas on Windows that is not a problem.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      No error messages or crashing

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      NACA 9412-03
      1.00034482 0.00114939
      0.99771410 0.00233729
      0.98984421 0.00586369
      0.97680186 0.01161766
      0.95869818 0.01941751
      0.93568874 0.02901556
      0.90797375 0.04010493
      0.87579850 0.05232826
      0.83945420 0.06528844
      0.79927893 0.07856124
      0.75565859 0.09170983
      0.70902747 0.10430069
      0.65986774 0.11592079
      0.60870746 0.12619507
      0.55611649 0.13480359
      0.50269986 0.14149722
      0.44908861 0.14611084
      0.39578347 0.14856743
      0.34183898 0.14789160
      0.28970124 0.14358619
      0.24011775 0.13590523
      0.19391849 0.12473235
      0.15191419 0.11028693
      0.11476392 0.09323754
      0.08289565 0.07461042
      0.05648030 0.05566581
      0.03545679 0.03776111
      0.01959601 0.02221645
      0.00858701 0.01019382
      0.00212718 0.00259745
      0.00000000 0.00000000
      0.00335092 -0.00014074
      0.01326539 -0.00049455
      0.02934747 -0.00086561
      0.05099775 -0.00095874
      0.07749429 -0.00042545
      0.10808735 0.00107348
      0.14209125 0.00379194
      0.17895520 0.00781458
      0.21829625 0.01297400
      0.25988225 0.01878227
      0.30356212 0.02439317
      0.34914402 0.02876582
      0.39630484 0.03141497
      0.44638292 0.03274981
      0.49730014 0.03350278
      0.54841197 0.03360422
      0.59920423 0.03300594
      0.64914926 0.03169192
      0.69770917 0.02968314
      0.74434141 0.02704017
      0.78850632 0.02386306
      0.82967640 0.02028806
      0.86734632 0.01648147
      0.90104325 0.01263066
      0.93033666 0.00893317
      0.95484728 0.00558456
      0.97425466 0.00276595
      0.98830339 0.00063234
      0.99680779 -0.00069761
      0.99965518 -0.00114939
      9999.9 9999.9
      1.00048269 0.00116388
      0.99789061 0.00265423
      0.99013984 0.00710184
      0.97730673 0.01443736
      0.95951855 0.02454825
      0.93695326 0.03728291
      0.90983889 0.05245554
      0.87845227 0.06985110
      0.84311688 0.08922977
      0.80419771 0.11033111
      0.76195490 0.13283462
      0.71662126 0.15609525
      0.66847986 0.17924755
      0.61781651 0.20128143
      0.56493381 0.22107566
      0.51018366 0.23744375
      0.45402509 0.24919817
      0.39710230 0.25524704
      0.34031237 0.25473718
      0.28480549 0.24723129
      0.23187412 0.23285827
      0.18275905 0.21235403
      0.13847168 0.18696465
      0.09971638 0.15826804
      0.06691523 0.12799551
      0.04028182 0.09789287
      0.01989452 0.06961616
      0.00574864 0.04464353
      -0.00221313 0.02419355
      -0.00408614 0.00915003
      0.00000000 0.00000000
      0.00956424 -0.00293143
      0.02406553 0.00026692
      0.04319484 0.00887152
      0.06656002 0.02185035
      0.09369277 0.03794443
      0.12406777 0.05577637
      0.15713880 0.07397716
      0.19239771 0.09131422
      0.22945570 0.10679312
      0.26812588 0.11969841
      0.30845786 0.12955486
      0.35067064 0.13603885
      0.39498601 0.13891618
      0.44144645 0.13806222
      0.48981634 0.13354065
      0.53959466 0.12566746
      0.59009518 0.11501109
      0.64053714 0.10233110
      0.69011538 0.08848408
      0.73804510 0.07432534
      0.78358754 0.06062425
      0.82601372 0.04799001
      0.86469255 0.03667315
      0.89917811 0.02674987
      0.92907215 0.01827969
      0.95402691 0.01130661
      0.97374979 0.00586073
      0.98800776 0.00196090
      0.99663128 -0.00038232
      0.99951731 -0.00116388

      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      There is no work around that I have found other than moving to Windows
      ;-(

        1. JListSelection.java
          0.7 kB
          Alexey Ivanov
        2. ListSelection.java
          0.8 kB
          Alexey Ivanov

            aivanov Alexey Ivanov
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: