jpanl边框设置,颜色与字体为title的设置。
jPanel4.setBorder(BorderFactory.createTitledBorder(BorderFactory
.createLineBorder(Color.GRAY), "名字", TitledBorder.LEFT, 2, new Font(Font.DIALOG,Font.BOLD,20), Color.BLUE));
jPanel4.setBorder(BorderFactory.createTitledBorder(BorderFactory
.createLineBorder(Color.GRAY), "名字", TitledBorder.LEFT, 2, new Font(Font.DIALOG,Font.BOLD,20), Color.BLUE));