我有一个装饰JFrame.我需要关闭按钮并最小化按钮.我该怎么办?
这是我的代码片段:
public Startup()
{
setTitle("STARTUP");
setSize(800,500);
setDefaultCloseOperation(EXIT_ON_CLOSE);
setUndecorated(true);
setLocationRelativeTo(null);
setVisible(true);
}
Run Code Online (Sandbox Code Playgroud) 我正在开发一个Java桌面应用程序.我想用JCalendar实现出生日期选择.我有一个JLabel,这个jCalendar被添加到JLabel.并使用setBounds()设置位置.但日历与其他组件重叠,我无法选择日期,所以我该怎么办?
这是我的代码片段
JCalendar dob=new JCalendar();
raillabel. add(dob);
dob.setBounds(250, 186, 320, 330);
Run Code Online (Sandbox Code Playgroud)