java 一个Swing组件怎么实现两个.setBorder的方法
发布网友
发布时间:2023-11-12 17:20
我来回答
共1个回答
热心网友
时间:2024-10-29 17:59
JPanel jp1 = new JPanel();
Border b1 = BorderFactory.createLineBorder(Color.CYAN);
Border b2 = BorderFactory.createTitledBorder(BorderFactory.createLoweredBevelBorder(), "人事管理");
jp1.setBorder(BorderFactory.createCompoundBorder(b1, b2));