📄 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 + -