JTextArea tarea = new JTextArea(); tarea.setText(""); ボタンと組み合わせると、クリアボタンになる。 JButton btn_clear = new JButton("clear"); ...
確定! 回上一頁