|
All, The really simple java code below ... Renders fine in OSX native java. Renders fine on linux under local X11. Renders fine on linux jdk1.7 remotely to Xquartz via ssh -Y Doesn't render properly from linux jdk1.8 remotely to Xquartz via ssh -Y. I suspect some jdk-Xquartz related bug. I don't know if its Xquartz or java - so I haven't formally filed a bug yet on Xquartz. Any suggestions appreciated. Happy to file a bug if someone knows whose it is... To reproduce: ssh -Y to some linux machine with jdk1.8 % java -version openjdk version "1.8.0_25" .... % javac ImageBug.java % java ImageBug % compare to OSX native, in Terminal.. % cat ImageBug.java import javax.swing.*; import java.io.*; import java.awt.*; import java.awt.image.*; import javax.imageio.*; import java.awt.geom.AffineTransform; import java.awt.event.*; public class ImageBug extends Canvas { BufferedImage BIS; int n=100; int width=700,height=400; public static void main(String [] args) { ImageBug IB = new ImageBug(); JFrame f = new JFrame("Window"); f.add(IB); f.setSize(IB.width,IB.height); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.setVisible(true); IB.BIS = new BufferedImage(IB.n,IB.n,BufferedImage.TYPE_INT_RGB); } public void paint(Graphics g) { Graphics2D g2 = (Graphics2D)g; int j,k; for(j=0;j<n;j++) for (k=0;k<n;k++) BIS.setRGB(j,k,j%255+(k%255)<<8); g2.drawImage(BIS,0,0,width,height, 0,0,n,n, null); // works if I draw it twice ??? //g2.drawImage(BIS,0,0,width,height, 0,0,n,n, null); } } |
<<attachment: James_Gunning.vcf>>
_______________________________________________ Do not post admin requests to the list. They will be ignored. X11-users mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/x11-users/archive%40mail-archive.com
This email sent to [email protected]
