Is there anyway to remove a border in a JTextField
?
txt = new JTextField();
txt.setBorder(null); // <-- this has no effect.
I would really want it to look like a JLabel
- but I still need it to be a JTextField
because I want people to be able highlight it.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…