I have created a sub class of JTextField called Edit.
I would like to do is add a method in there that is called:
setCaption(String)
What this would do is add a JLabel or "caption" to a text field.
textField.setCaption("Name:"); - Which would produce something like this:
Name: ____________
Is this done already in Java?
If not, can somebody point me in the right direction to making this happen?
Thanks in advance
I would like to do is add a method in there that is called:
setCaption(String)
What this would do is add a JLabel or "caption" to a text field.
textField.setCaption("Name:"); - Which would produce something like this:
Name: ____________
Is this done already in Java?
If not, can somebody point me in the right direction to making this happen?
Thanks in advance