Board index » jbuilder » MYJPanel extends JPanel

MYJPanel extends JPanel


2004-02-27 05:06:37 AM
jbuilder13
Why setBackground(Color bg) method don't work with MyJPanel when is on
another JPanel?
Thanks?
J. Berg
 
 

Re:MYJPanel extends JPanel

J. Berg wrote:
Quote
Why setBackground(Color bg) method don't work with MyJPanel when is on
another JPanel?
You also need to make it opaque.
myPanel.setOpaque(true);
--
Gillmer J. Derge (TeamB)
 

Re:MYJPanel extends JPanel

Thanks for your assistance
"Gillmer J. Derge (TeamB)" < XXXX@XXXXX.COM >escreveu na mensagem
Quote
J. Berg wrote:
>Why setBackground(Color bg) method don't work with MyJPanel when is on
>another JPanel?

You also need to make it opaque.

myPanel.setOpaque(true);

--
Gillmer J. Derge (TeamB)
 

{smallsort}