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

Forum statistics

Threads
473,981
Messages
2,570,188
Members
46,733
Latest member
LonaMonzon

Latest Threads

Top