|
|
@ -31,22 +31,22 @@ public class ProgressDialog extends UIDialog { |
|
|
|
super(parent); |
|
|
|
super(parent); |
|
|
|
setUndecorated(true); |
|
|
|
setUndecorated(true); |
|
|
|
setSize(parent.getSize()); |
|
|
|
setSize(parent.getSize()); |
|
|
|
setLocationRelativeTo(null); |
|
|
|
setLocation(parent.getLocation()); |
|
|
|
OSSupportCenter.buildAction(new OSBasedAction() { |
|
|
|
OSSupportCenter.buildAction(new OSBasedAction() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void execute(Object... objects) { |
|
|
|
public void execute(Object... objects) { |
|
|
|
setOpacity(0.5f); |
|
|
|
setOpacity(0.5f); |
|
|
|
} |
|
|
|
} |
|
|
|
}, SupportOSImpl.OPACITY); |
|
|
|
}, SupportOSImpl.OPACITY); |
|
|
|
initComponent(); |
|
|
|
initComponent(parent); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void initComponent() { |
|
|
|
private void initComponent(Frame parent) { |
|
|
|
|
|
|
|
|
|
|
|
centerDialog = new JDialog(this); |
|
|
|
centerDialog = new JDialog(this); |
|
|
|
centerDialog.setSize(new Dimension(482, 124)); |
|
|
|
centerDialog.setSize(new Dimension(482, 124)); |
|
|
|
centerDialog.setUndecorated(true); |
|
|
|
centerDialog.setUndecorated(true); |
|
|
|
GUICoreUtils.centerWindow(centerDialog); |
|
|
|
centerDialog.setLocationRelativeTo(parent); |
|
|
|
JPanel panel = new JPanel(); |
|
|
|
JPanel panel = new JPanel(); |
|
|
|
panel.setBorder(new UIProgressBorder(3, UIConstants.DEFAULT_BG_RULER, 14, 46, 47, 37, 47)); |
|
|
|
panel.setBorder(new UIProgressBorder(3, UIConstants.DEFAULT_BG_RULER, 14, 46, 47, 37, 47)); |
|
|
|
panel.setLayout(new BorderLayout(4, 15)); |
|
|
|
panel.setLayout(new BorderLayout(4, 15)); |
|
|
|