Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何设置线条边框的弧宽和高度。从那时起,我一直在使用该方法在 Java 中创建线条边框
BorderFactory.createLineBorder(Color.BLACK,2,true);
但问题是弧的宽度和高度是固定的。我怎么能增加这个?我需要为此覆盖paintBorder()吗?
paintBorder()
任何答案表示赞赏。