Help: Overriding the paintComponent when using the Netbeans GUI Builder



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);

}

.



Relevant Pages

  • Help: Overriding the paintComponent when using the Netbeans GUI Builder
    ... I wrote a Japplet using the Netbeans's GUI builder. ... On a JPanel, I would like to run some ... image manipulation and therefore I'm looking for a way to override the ... Any idea how can get control on the paintComponent when was build using ...
    (comp.lang.java.help)
  • Re: Replacing an existing jPanel with a new jPanel
    ... There is no such class in the J2SE as jPanel. ... using NetBeans Swing GUI builder. ... generally produce crap code unless the ... creates a graph and returns the graph on a JPanel. ...
    (comp.lang.java.gui)
  • BoxLayout in Netbeans GUI builder
    ... I'm constructing a small application using the GUI Builder in Netbeans ... rather then straight code. ... I have a JPanel with a BoxLayout. ...
    (comp.lang.java.gui)