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

code redundancy in com/sun/java/swing/SwingUtilities2.java

XMLWordPrintable

    • x86
    • linux_redhat_9.0

      479 FontRenderContext frc = (FontRenderContext)AppContext.
      480 getAppContext().get(FRC_KEY);

      This FRC was stored in BasicTextUI.paint method
      --
      FontRenderContext frc = SwingUtilities2.getFontRenderContext(c);
      AppContext.getAppContext().put(SwingUtilities2.FRC_KEY,frc);
      --

      After the change for 5030990 all drawing methods have component they drawing for as an
      argument. AppContext stashing shoud be removed
      this bug was fixed as part of 6232607 Clipping off JLabel-text in printer output using html. Closing as duplicate.

            peterz Peter Zhelezniakov
            idk Igor Kushnirskiy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: