Hi how can i change my Jlable variable to make it just selected by cursor, to help user copying the contain easily.
Printable View
Hi how can i change my Jlable variable to make it just selected by cursor, to help user copying the contain easily.
implements a mouselistener{
String labelText = label.getText();
somewhere.setText(labelText);
}
JLabels don't support selection. Use a non-editable JTextField.
Thanks, so can i change the style of the JTextField, in the case to don't show the border ?
Read the API. Experiment with methods that look like they may be useful.
Hint: many of the setXxx(...) methods can be passed a null. For example, setLayout(null) removes any existing layout manager.
db