splashText.setVisible(true);
splashText.setSize(new Dimension(750,
- 375 + logoSize + (Platform.isJS() ? 40 : 0)));
+ 425 + logoSize + (Platform.isJS() ? 40 : 0)));
splashText.setBackground(bg);
splashText.setForeground(fg);
splashText.setFont(font);
revalidate();
int width = Math.max(splashText.getWidth(), iconimg.getWidth());
int height = splashText.getHeight() + iconimg.getHeight();
- iframe.setBounds((Desktop.instance.getWidth() - width) / 2,
- (Desktop.instance.getHeight() - height) / 2, width, height);
+ iframe.setBounds(
+ Math.max(0, (Desktop.instance.getWidth() - width) / 2),
+ Math.max(0, (Desktop.instance.getHeight() - height) / 2),
+ width, height);
iframe.validate();
iframe.setVisible(true);
return true;