1. btn_join.setFocusable(false);
//可以设置按钮中的小框不可见
2.btn_join.setContentAreaFilled(false);
//可以设置按钮透明
3. btn_join.setForeground(Color.ORANGE);
//设置按钮字体的颜色
4.btn_join.setBorder(null);
// 可以去掉按钮外面的框
5.btn_join.setIcon(new ImageIcon("img/index.jpg"));
// 画图片
6.btn_join.setForeground(Color.RED); //设置字体颜色
7.JOptionPane.showMessageDialog(f, "修改成功"); //只有一个确定按钮
8.String name = JOptionPane.showInputDialog(null, "请输入列表名称:", "新建列表");
if (name == null) {
JOptionPane.showMessageDialog(null, "未创建");
return;
} //在框内输入要输入的字段
9.int dialog = JOptionPane.showConfirmDialog(mp, "確定要退出嗎?", "溫馨提示", 0);
if (dialog == JOptionPane.OK_OPTION) {
System.exit(0);
} //点击确定执行括号内的程序
...