paintComponent() not being called

I

Ike

public class PanelA extends JPanel

public class PanelB extends PanelA

In PanelA I have overriden public void paintComponent(Graphics g)

When I instantiante PanelB, and it goes to paint, it should be calling
PanelA.paintComponent(Graphics g) but this is never being called.

Anyone have any ideas why that is so?

//Ike
 
K

Knute Johnson

Ike said:
public class PanelA extends JPanel

public class PanelB extends PanelA

In PanelA I have overriden public void paintComponent(Graphics g)

When I instantiante PanelB, and it goes to paint, it should be calling
PanelA.paintComponent(Graphics g) but this is never being called.

Anyone have any ideas why that is so?

//Ike

Without the code to look at no. But a common problem is misspelling
paintComponennt().
 
I

Ike

yep..thats it..never occured to me! Thanks.

Knute Johnson said:
Without the code to look at no. But a common problem is misspelling
paintComponennt().

--

Knute Johnson
email s/nospam/knute/
Molon labe...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top