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

In line 179 of BarChart.java the string "darkGray" should be "darkgray"

XMLWordPrintable

    • b35
    • x86
    • windows_xp



      Name: gm110360 Date: 01/05/2004


      FULL PRODUCT VERSION :


      A DESCRIPTION OF THE PROBLEM :
      from source in j2sdk1.4.1_02/demo/plugin/applets/BarChart/BarChart.java

      ...
       temp = temp.toLowerCase();
       if (temp.equals("red")) {
           colors[i] = Color.red;
      ...
       } else if (temp.equals("darkGray")) { // you changed temp to lower case above!!!
                      colors[i] = Color.darkGray;

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      look at source


      REPRODUCIBILITY :
      This bug can be reproduced always.
      (Incident Review ID: 232682)
      ======================================================================

            ehawkessunw Eric Hawkes (Inactive)
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: