You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.2 KiB
39 lines
1.2 KiB
2 years ago
|
package com.fr.plugin.db.procedure.designframe;
|
||
|
|
||
|
import com.fr.locale.InterProviderFactory;
|
||
|
import com.fr.schedule.base.bean.output.BaseOutputAction;
|
||
|
import com.fr.web.attr.ReportWebAttr;
|
||
|
|
||
|
import javax.swing.*;
|
||
|
import java.awt.*;
|
||
|
|
||
|
public class TemplateProcedureDialog extends JDialog {
|
||
|
|
||
|
private final int dia_width = 900;
|
||
|
private final int dia_height = 600;
|
||
|
public TemplateProcedureDialog() {
|
||
|
this.setBounds(100,100,dia_width,dia_height);
|
||
|
this.setVisible(true);
|
||
|
this.setTitle(InterProviderFactory.getProvider().getLocText("Fine-db-procedurce-dialog-title"));
|
||
|
Container container = this.getContentPane();
|
||
|
container.setLayout(null);
|
||
|
|
||
|
Toolkit kit = Toolkit.getDefaultToolkit(); // 定义工具包
|
||
|
|
||
|
|
||
|
Dimension screenSize = kit.getScreenSize(); // 获取屏幕的尺寸
|
||
|
int screenWidth = screenSize.width/2; // 获取屏幕的宽
|
||
|
int screenHeight = screenSize.height/2; // 获取屏幕的高
|
||
|
|
||
|
setLocation(screenWidth-dia_width/2, screenHeight-dia_height/2);
|
||
|
|
||
|
JLabel jLabel = new JLabel("我的第一个弹窗");
|
||
|
jLabel.setBounds(10,10,100,20);// label需要设置大小才能看的到
|
||
|
|
||
|
container.add(jLabel);
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
}
|