?? datechooserjbuttonframe.java
字號:
package base.swing;
import javax.swing.JButton;
import javax.swing.JFrame;
@SuppressWarnings("serial")
public class DateChooserJButtonFrame extends JFrame {
/**
* Launch the application
* @param args
*/
public static void main(String args[]) {
try {
DateChooserJButtonFrame frame = new DateChooserJButtonFrame();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
/**
* Create the frame
*/
public DateChooserJButtonFrame() {
super();
getContentPane().setLayout(null);
setBounds(100, 100, 500, 375);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
final JButton button = new DateChooserJButton();
button.setText("日期");
button.setBounds(107, 89, 122, 34);
getContentPane().add(button);
//
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -