datechooserjbuttonframe.java
来自「用Java语言写的一个qq聊天软件」· Java 代码 · 共 39 行
JAVA
39 行
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 + =
减小字号Ctrl + -
显示快捷键?