Re: [JAVA2D] Canvas vs. JComponent for drawing (again)

2006-05-26 Thread Dmitri Trembovetski
Hi Jonathan, yes, in Swing applications JComponent should be used, and not Canvas. Canvas is a heavyweight component and using it may interfere with Swing's repainting. Thanks, Dmitri On Fri, May 26, 2006 at 12:28:57AM -0400, Jonathan Mast wrote: [I sent this the first day I

Re: [JAVA2D] Black and White printing

2006-05-26 Thread Phil Race
Perhaps you could create a BufferedImage.TYPE_BYTE_BINARY with a 2 color IndexColorModel and have all the printing go into there. Then all rendering will have to be one of those two colours which I assume you would select as BW. The drawbacks to this are that to get printer resolution graphics

Re: [JAVA2D] A few simple Java 2D questions ...

2006-05-26 Thread java2d
Hi Jim, By 'sub-pixel' are you referring to the sub-pixels in LCD displays, for example? Does this then not apply to CRT monitors? Thanks, D. [Message sent by forum member 'dodger' (dodger)] http://forums.java.net/jive/thread.jspa?messageID=116601

[JAVA2D] Repaint flicker when mixing swing heavyweight

2006-05-26 Thread Mark McKay
I'm writing an application that uses JOGL, and so necessarily contains a heavyweight component that extends Canvas. However, most of the application uses Swing, including a component of my own design that extends JComponent and has a complex repaint routine. While my component works properly,