setBackground(Color.gray); JButton b1=new JButton("Button 1"); b1. ... public class Simple { JFrame f; Simple(){ f=new JFrame(); JButton b=new ...
確定! 回上一頁