Gal*_*are 1 java eclipse user-interface swing jbutton
我正在尝试使用Eclipse创建Java 7地址簿,当我测试运行JFrame时,JLabel不可见并且JButton重叠.(按钮将占用整个JFrame)例如
add(saveButton);
add(cancelButton);
add(headingLabel);
headingLabel.setVisible(true);
cancelButton.setLocation(200,200);
saveButton.setLocation(400,200);
cancelButton.setSize(200,50);
saveButton.setSize(200,50);
Run Code Online (Sandbox Code Playgroud)
我究竟做错了什么?
| 归档时间: |
|
| 查看次数: |
610 次 |
| 最近记录: |