setBounds(130,100,100, 40);//x axis, y axis, width, height; f.add(b);//adding button in JFrame; f.setSize(400,500);//400 width and 500 height; f.
確定! 回上一頁