In my GUI, by clicking on the button "Help", I want to open a new window within it containing som text information stored in HTML via JEditorPane
. My question is:
- Should I store an instance of JEditorPane object within JDialog or JFrame?
- What kind of pros/cons both components can offer?
I do not want to make any operations within this window, it will just serve to show the text information.