Re: [JAVA2D] Making a JTextArea appear in a BufferedImage O.o

2006-05-08 Thread java2d
are you trying to draw the JTextArea within the image or use it as an actual child component that users can work with? leouser [Message sent by forum member 'leouser' (leouser)] http://forums.java.net/jive/thread.jspa?messageID=111849

Re: [JAVA2D] Making a JTextArea appear in a BufferedImage O.o

2006-04-24 Thread [ Fenrir Northern Wolf ]
I Forgot to mention that, but I did override the paintComponent() method like this :public void paintComponent(Graphics g){ super.paintComponent(g); update(g); } public void update(Graphics g){ Graphics2D g2D = (Graphics2D) g; Dimension dim = getSize(); int w = dim.width; int h = dim.height;

Re: [JAVA2D] Making a JTextArea appear in a BufferedImage O.o

2006-04-20 Thread Chet Haase
You need to override paintComponent(), not paint(). If you override paint(), you need to draw the children of the current component yourself (paint draws borders, children, etc.). But if you override paintComponent(), then your responsible only for the component's contents, and Swing will