mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
support GUI form designer
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user