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

Text rotation not correct on Win ME (works fine on Win 2K, NT, 98)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.3.0
    • client-libs
    • 2d
    • x86
    • windows_2000



      Name: krC82822 Date: 03/07/2001


      C:\WINDOWS>java -version
      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

      I am trying to rotate text on Win ME. I created a frame & added to it a JPanel
      with bounds (0,0,50,200). I overrode the JPanel's paintComponent as follows:

      public void paintComponent (Graphics g) {
        Graphics2D g2D = (Graphics2D)g;
        g2D.translate(0,getHeight());
        g2D.rotate(-Math.PI/2); // vertical rotation
        g2D.drawString("Nasser",2,20);
      }

      This code works fine on Win 2K, NT, 98.
      On Win ME, it only shows the 1st character rotated (N).

      --------------

      7 Mar 2001, user email:

      I installed the latest version of DirectX (version 8.0) on Win ME & still
      got the same problem. I even disabled the DirectDraw from System
      Information - DirectX Diagnostic tool with no luck. As of the graphic
      configuration of the system, there is no special settings that I am aware
      of. By the way, I tested the same code on different machines running Win ME
      & I got the same problem.
      (Review ID: 118087)
      ======================================================================

            Unassigned Unassigned
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: