We can also write all the codes of creating JFrame, JButton and method call inside the ... setBounds(130,100,100, 40); f.add(b);//adding button in JFrame f.
確定! 回上一頁