support GUI form designer

This commit is contained in:
Gregory.Shrago
2019-03-12 02:59:25 +03:00
parent 534161259d
commit 8084eb3f3b
@@ -62,6 +62,17 @@ public class JBLoadingPanel extends JPanel {
super.add(myDecorator.getComponent(), BorderLayout.CENTER);
}
@Override
public void setLayout(LayoutManager mgr) {
if (!(mgr instanceof BorderLayout)) {
throw new IllegalArgumentException(String.valueOf(mgr));
}
super.setLayout(mgr);
if (myDecorator != null) {
super.add(myDecorator.getComponent(), BorderLayout.CENTER);
}
}
public static void customizeStatusText(JLabel text) {
Font font = text.getFont();
text.setFont(font.deriveFont(font.getStyle(), font.getSize() + 6));