String. However, the return type of this method is actually Object. Its interpretation depends on its type: Component is displayed in the dialog. Icon is wrapped in a JLabel and displayed in the dialog. String by calling its toString method. The result is wrapped in a JEditorPane or JTextArea and displayed. | |
| |
| |