Customizing JTextField
问题 I would like to know how to customize the ui of a jtextfield so I could create rounded rectangular border without the document going outside the border. So far I think I have tried the most of what I can think of, I have created a new FieldView class and changed the shape in the paint method according to my customized border that draw rounded rects, the only way I sort of managed to get rid of the white textfield document/view was to set it opaque but I think there should be another way