JPanel panel = new JPanel();
JButton h = new JButton("HELLO");
for (int i = 0; i < 15; i++) {
panel.add(h);
}
Run Code Online (Sandbox Code Playgroud)
由于某种原因,面板只显示按钮一次.
例如:
FileWriter saveFile = new FileWriter("text.txt");
Run Code Online (Sandbox Code Playgroud)
此代码显示错误:
Unhandled exception type IOException
Run Code Online (Sandbox Code Playgroud)
这是什么意思?