cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
gopisai
Level 2

customcodepanel+setBackGround();

Hi all,
public boolean setupUI(CustomCodePanelProxy customCodePanelProxy) {

Border thisBorder = BorderFactory.createTitledBorder(titleMsg);

JPanel panel = new JPanel();
addLabel(panel, messageToDisplay);


panel.setBorder(thisBorder);
setBackground(Color.GRAY);
add(panel);
return true;
}
In the above code when setting setBackground(Color.GRAY); is not working can any help me to set the BGcolor to gray for the internal frame
Labels (1)
0 Kudos
(1) Reply
bharath_reddy
Level 3

Too late response and hope you would have fixed it by now . Anyways if it for the panel you can set the background by using,

panel.setBackground(Color.GRAY);

Also,follow this link for a Sample Custom code Panel and check if this can help you.

If this doesn't help or if you have fixed it by now, please post the fix here...
0 Kudos