DrawLine - How To?
Hi, im using netbeans, im creat form and this form im adding panel and in form im adding button to, its all i doing in visual, after it, i wont draw line in the panel, but if i use primite drawline, my line is deleting after first repain, refrash of window, but i need that my line dont deleted, what i must doing? Help me please!!!
Sorry of my bad english :)
[372 byte] By [
JTOnea] at [2007-11-27 2:26:43]

> draw it in the paint() method
Assuming this is a Swing application:
a) then Swing related questions should be posted in the Swing forum so we don't have to guess
b) custom painting should be done in the paintComponent(...) method.
Read the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/painting/index.html]Custom Painting[/url].