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

Swing Elements do not get rendered

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: P3 P3
    • None
    • 8
    • client-libs
    • 2d
    • windows_8

      FULL PRODUCT VERSION :
      java version "1.8.0-ea"
      Java(TM) SE Runtime Environment (build 1.8.0-ea-b121)
      Java HotSpot(TM) 64-Bit Server VM (build 25.0-b63, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 6.2.9200]

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Java is usually running with Intel HD Graphics4000

      Graphics Card: NVIDIA GeForce 710M (not offen used in the context with Java)

      A DESCRIPTION OF THE PROBLEM :
      I got the problem that almost all Swing UI Elements that are displaying text or images/icons don't get rendered. They contain some kind of aweful artifacts (like only the first part of a word get rendered or yyou can only see half of the icon).

      I made some screenshots but I don't know how to attach them...

      There is no problem on developing site but for clients or persons using Java Software it'll be annoying (like for me).

      ADDITIONAL REGRESSION INFORMATION:
      java version "1.8.0-ea"
      Java(TM) SE Runtime Environment (build 1.8.0-ea-b121)
      Java HotSpot(TM) 64-Bit Server VM (build 25.0-b63, mixed mode)

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      It always happens if some text or icons are displayed.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      A working and well rendered UI.
      ACTUAL -
      "Broken" text and icons (see description for some more details)

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      Jan 06, 2014 8:47:53 PM java.util.prefs.WindowsPreferences <init>
      WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) r
      eturned error code 5.

      This happens almost every time I launch an application (not sure if it also come when I'm running console based one). I also noticed that it is not bound to Swing so it also appears if running JavaFX applications.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import javax.swing.*;

      public class Bug {

      public static void main(String[] args) {
      JFrame frame = new JFrame("Bug Rendering Example");
      JMenuBar bar = new JMenuBar();

      JMenu file = new JMenu("File");
      JMenuItem item = new JMenuItem("Test Button Rendering");
      item.addActionListener(e -> JOptionPane.showConfirmDialog(null, "Small bug showcase", "Bug Rendering Example", JOptionPane.YES_NO_CANCEL_OPTION));
      file.add(item);

      bar.add(file);
      bar.add(new JMenu("Edit"));
      bar.add(new JMenu("Help"));

      JTextArea area = new JTextArea();
      area.setText("public class TextRenderingBug extends SwingBasedBug implements AnnoyingBug {"
      +"

      \tpublic TextRenderingBug(String name, String id, String desc) {
      \t\tsuper(name, id, desc);}

      \t@Override
      \tpublic boolean isReallyAnnoying() {
      \t\treturn true;
      \t}
      }");
      frame.add(area);

      frame.setJMenuBar(bar);
      frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
      frame.setSize(500,350);
      frame.setLocationByPlatform(true);

      SwingUtilities.invokeLater(() -> frame.setVisible(true));
      }
      }
      ---------- END SOURCE ----------

            prr Philip Race
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: