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