Changes between Version 11 and Version 12 of DevelopersGuide/HelpSystem
- Timestamp:
- 2020-01-31T02:24:17+01:00 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DevelopersGuide/HelpSystem
v11 v12 53 53 54 54 === Adding a help button to an UI widget === 55 You can easily add a help button to a GUI element. The easiest way is to reuse [source:/trunk/src/org/openstreetmap/josm/gui/help/ContextSensitiveHelpAction ContextSensitiveHelpAction]: 55 You can easily add a help button to a GUI element. The easiest way is to reuse [source:/trunk/src/org/openstreetmap/josm/gui/help/ContextSensitiveHelpAction.java ContextSensitiveHelpAction]: 56 56 {{{ 57 57 #!java … … 145 145 146 146 === Context-sensitive help in message dialogs === 147 The utiliy class [source:/trunk/src/org/openstreetmap/ org/josm/gui/HelpAwareOptionPane.java HelpAwareOptionPane] provides static utility methods for displaying message dialogs with enabled context-sensitive help.147 The utiliy class [source:/trunk/src/org/openstreetmap/josm/gui/HelpAwareOptionPane.java HelpAwareOptionPane] provides static utility methods for displaying message dialogs with enabled context-sensitive help. 148 148 149 149 The simplest case is to display a message dialog with an ok button and a help button: