Search code examples
javaswingnetbeansjeditorpane

How to give hint for jEditorPane?


How can I give hint for jEditorPane in Java, I am using NetBeans ide? I don't see any property in the jEditorPane, what can be done in this respect?


Solution

  • By hint you mean a tooltip?

    editor.setToolTipText("Tooltip here");
    

    You should be able to find a toolTipText property in the properties for the pane.