This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- customcodepanel+setBackGround();
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 22, 2010
04:16 AM
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
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
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 09, 2010
11:05 PM
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...
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...