标签: java swing jlabel
jLabel.setBorder(BorderFactory.createLineBorder(Color.BLUE));
如何在此之后检查边框颜色?
答案 0 :(得分:7)
检查api,我会说
((LineBorder)jLabel.getBorder()).getLineColor();