?? aboutguidialog.java
字號:
package jmathlib.ui.awt;
import java.awt.*;
/**Simple dialog extension that creates a new non-modal and centered dialog.*/
public class AboutGUIDialog extends GUIDialog
{
private static final int LEFT = 80;
private Label content0Label;
private Label content1Label;
private Label content2Label;
private Label content3Label;
public AboutGUIDialog(Frame _owner)
{
super(_owner, "About JMathLib");
setVisible(false);
setSize(250, 135);
setResizable(false);
// Let's initialize the labels
content0Label = new Label("The JMathLib team (by now)");
content0Label.setLocation(getInsets().left+40, getInsets().top+30);
content0Label.setSize(200, 21);
content0Label.setFont(new Font("Dialog", Font.BOLD, 12));
content0Label.setForeground(new Color(8421504));
content1Label = new Label("Stefan Mueller");
content1Label.setLocation(getInsets().left+LEFT, getInsets().top+60);
content1Label.setSize(100, 21);
content2Label = new Label("Mark Sparshatt");
content2Label.setLocation(getInsets().left+LEFT, getInsets().top+80);
content2Label.setSize(100, 21);
content3Label = new Label("Alejandro Torras");
content3Label.setLocation(getInsets().left+LEFT, getInsets().top+100);
content3Label.setSize(100, 21);
add(content0Label);
add(content1Label);
add(content2Label);
add(content3Label);
setVisible(true);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -