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

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

XMLWordPrintable

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

      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)));
      }

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

              Created:
              Updated:
              Resolved:
              Imported: