如何更改边框宽度?我想要一个较轻的边框。以下是我的尝试。// Set border Border border = BorderFactory.createLineBorder(Color.LIGHT_GRAY); textarea.setBorder(BorderFactory.createCompoundBorder(border, BorderFactory.createEmptyBorder(5, 5, 5, 5)));