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

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