*
* @param logo URL of the logo image to display.
*/
public void addLogo(URL logo) {
try {
LImagePane logoPane = new LImagePane(logo);
logoPane.setMaxSize(getWidth() + 50, getHeight() + 50);
logoPane.setAlpha((float) 0.3);
logoPane.setLocation(getWidth() / 2 - logoPane.getWidth() / 2, getHeight() / 2 - logoPane.getHeight() / 2 - 10);
add(logoPane);
} catch (IOException ex) {
SPGlobal.logException(ex);
}
}