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

Graphics drawString takes WAY too long

XMLWordPrintable

    • x86_64
    • linux

      FULL PRODUCT VERSION :
      cannot run command do not know why. java 7 Runtime

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      MATE Desktop Environment 1.6.0, Linux Mint Release 15, Kernel Linux 3.8.0-19-generic

      A DESCRIPTION OF THE PROBLEM :
      When i make any program and i try and use drawString in my paintComponent, it takes about 4 seconds just to call the funciton once. i have noticed that across the internet, other people have the same problem. I am trying to make a text based game but this makes it impossible PLEASE fix this very soon.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      just make a program that involves a java.awt.Graphics instance and use the drawString method

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      I expected that it would take about 0.01 seconds or something...
      ACTUAL -
      I got it to render about 4 seconds for the string "Game Over"

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      not a crash

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      public void paintComponent(Graphics g) {
          super.paintComponent(g);
          g.drawString("Your String", x, y);
      }
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      no workaround D:'

            ssadetsky Semyon Sadetsky (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: