给整个panel上方加个label还有边框,很实用
panel.setBorder(BorderFactory.createTitledBorder("定义显示框"));
改变字号和字体
jlabel.setFont(new java.awt.Font("微软雅黑", 1, 15));
改变字的颜色
jlabel.setForeground(Color.red);
数据库执行查询语句
ret = db1.pst.executeQuery();
数据库执行插入语句
db1.pst.execute();
网格布局管理器加左右和上下的间距
this. setLayout(new GridLayout(0,4,10,50));
这次先写这么多吧,最近在做某仿真系统开发