Problem:
If you wan to override the paint method in Netbeans, you can't !
In fact, if you use the Netbeans editor you will obtain a a class like that :
*/
public class PacketMakerView extends FrameView {
public PacketMakerView(SingleFrameApplication app) {
Et il vous sera impossible d'overrider la méthode paint.
Solution:
In design interface, make a right click on the component then choose customize code.
To override paint, you have to change the initialize with "custom creation".
So now, it's possible to override paint method !
{
public void paint(Graphics g) {
super.paint(g);
// ...
}
}
No comments:
Post a Comment