I made a combination of a JTextField and a JLabel, because I want something that allows text input but doesn't stay ugly-looking like a JTextField when not in use. So, I came up with this class...
...