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());
}
}
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());
}
}