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

(fp.bugs 2363) width and height are -1 on NT.

    XMLWordPrintable

Details

    • 1.1beta3
    • x86
    • windows_nt
    • Not verified

    Description

      From: Patrick Chan <###@###.###>

      If you run the following applet on Solaris, the width and height
       are
      max_int. If you run it on NT, the width and height are -1.

      In particular, painting an image in g (on the NT version)
      does not show up.

      Cheers,
      Pat


      import java.awt.*;
      import java.applet.*;

      public class ClipBug extends Applet {
          public void init() {
              Image backBuffer = createImage(100, 100);
              Graphics g = backBuffer.getGraphics();
              System.out.println(g.getClipRect());
          }
      }

      Attachments

        Activity

          People

            tballsunw Tom Ball (Inactive)
            hwilliamsunw Headley Williamson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: