For Programmers: Free Programming Magazines  


Home > Archive > Java Help > August 2006 > Help: Overriding the paintComponent when using the Netbeans GUI Builder









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Help: Overriding the paintComponent when using the Netbeans GUI Builder
john

2006-08-31, 8:01 am

Hi,

I wrote a Japplet using the Netbeans's GUI builder.

On a JPanel (also created using this tool), I would like to run some
image manipulation and therefore I'm looking for a way to override the
paintComponent. I've tried the following but it seems that it was never
executed (tired also to add some printout commands).
Any idea how can get control on the paintComponent when was build using
the GUI builder?

Thanks

John

public void paintComponent(Graphics g) {
g.drawOval(50,50,250,300);
g.drawString("Hello",50,50);

}

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com