Is there a way to let the textField of eclipse/swing this way?
Asked
Active
Viewed 175 times
2 Answers
0
You can add a matt look to the border of text field like this :
JTextField textField = new JTextField();
// left side border
textField .setBorder(BorderFactory.createMatteBorder(0, 5, 0, 0, Color.BLACK));
//right side border
textField.setBorder(BorderFactory.createMatteBorder(0, 0, 0, 5, Color.BLACK));

PeaceIsPearl
- 329
- 2
- 6
- 19
0
If you need to customize only Inputfield, extends JTextInputField and Override the paint() method.
But probably you will need a full Look and Feel.