java 中JButton设置为透明的?

2025-03-21 02:47:23
推荐回答(1个)
回答1:

		JButton b = new JButton("test");
b.setContentAreaFilled(false);
con.add(b);
con.setBackground(Color.red);