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

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 handle

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

2006-04-20 Thread [ Fenrir Northern Wolf ]
Hey ppl. I'm getting problems to show a JTextArea in an applet that I'm working on, and I hope someone can help me. Well, my application is like windows "Paint". You can draw some shapes in it, and can move, reshape it, cause I save every shape reference. And to draw it I overrided the repaint() me