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

New objects are created each time impl_cssSet is called causing performance problems.

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • fx2.0
    • fx2.0
    • javafx

    Description

      In impl_cssSet in Labeled.java. The following snippet of code can cause performance problems because each time impl_cssSet is called a new ImageView is created. I fixed Labeled and Tooltip already but there may be other places in controls that have the same bug.

      String imageUrl = (String)value;
      if (imageUrl != null) {
          setGraphic(new ImageView(new Image(imageUrl)));
      }

      Attachments

        Activity

          People

            jgiles Jonathan Giles
            kwwong Kinsley Wong (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: