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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 1.3.0
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
      2d
    • CPU:
      x86
    • OS:
      windows_2000

      Description



      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)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: