I'm trying to use the paint method in NetBeans, but cannot get it to work.
Where exactly would I put the following snippet:
Code :
public void paint(Graphics g) {
...
}
Re: I'm trying to use the paint method in NetBeans, but cannot get it to work.
Re: I'm trying to use the paint method in NetBeans, but cannot get it to work.
Quote:
Originally Posted by
scribbleno1
Please? A little help?
Have patience, and a bit more information would help get you a quicker response. Such as what you are trying to do. Is this an applet? A swing component?
Re: I'm trying to use the paint method in NetBeans, but cannot get it to work.
Go through the Swing tutorial (link below) and learn how not to better make use of the features of your IDE.
Trail: Creating a GUI With JFC/Swing (The Java™ Tutorials)
Yes, it also covers how to correctly perform custom painting.
db