🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.swing
3 messages
3 total messages Started by J. Berg Thu, 26 Feb 2004 21:06
MYJPanel extends JPanel
#1243
Author: J. Berg
Date: Thu, 26 Feb 2004 21:06
6 lines
995 bytes
Why setBackground(Color bg) method don't work with MyJPanel when is on
another JPanel?

Thanks?

J. Berg
Re: MYJPanel extends JPanel
#1244
Author: Gillmer J. Derge (TeamB)
Date: Thu, 26 Feb 2004 21:17
10 lines
1221 bytes
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)
Re: MYJPanel extends JPanel
#1245
Author: J. Berg
Date: Thu, 26 Feb 2004 22:07
14 lines
1287 bytes
Thanks for your assistance

"Gillmer J. Derge (TeamB)" <spam@gillmerderge.com> escreveu na mensagem
news:403e6266$1@newsgroups.borland.com...
> 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)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads