NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Nicolas, Your code doesn't use VisAD. You may need to send it to one of Sun's AWT or Java2D mailing lists. _From your previous questions it is clear that you have looked at Ugo's excellent VisAD tutorial. If you follow this your code will include VisAD calls. You should also see Tom Whittaker's recent message about drawing lines with VisAD, at: http://www.unidata.ucar.edu/staff/russ/visad/msg16764.html Good luck, Bill On Thu, 5 Jun 2003, [iso-8859-1] nicolas guegan wrote: > Hello, > I have a problem to trace a line in a graphic. > > My code is : > Image img = new > java.awt.image.BufferedImage(150,52,java.awt.image.BufferedImage.TYPE_INT_RGB); > Graphics2D g2d = (Graphics2D)img.getGraphics(); > g2d.drawLine(1,2,3,4); > > JFrame jframe = new JFrame("essai affichage"); > jframe.getContentPane().add(display.getComponent()); > jframe.setSize(700, 700); > jframe.setVisible(true); > > (Variable display is an DisplayImpl) > > I suppose that I create a line but I don't display this. > But I don't know display the line. Can I add this to the display variable? or > I can do other something ... > thank you for your help. > nicolas
visad
archives: