Only 1 Corner is Rounded when I call fillRoundRect()
问题 When run this code: import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.RenderingHints; import javax.swing.JButton; import javax.swing.JLabel; public class CustomButton extends JButton { int width = 100; int height = 50; int radius = 10; JLabel lab; @Override protected void paintComponent(Graphics g) { Graphics2D g2 = (Graphics2D) g; g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2.setColor(Color.ORANGE); g2