Changeset 12004 in josm


Ignore:
Timestamp:
2017-04-26T00:56:07+02:00 (2 months ago)
Author:
Don-vip
Message:

fix #14696 - make help browser a JFrame rather than a JDialog so it has standard controls such as minimize/maximize buttons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/help/HelpBrowser.java

    r11520 r12004  
    2121import javax.swing.AbstractAction;
    2222import javax.swing.JButton;
    23 import javax.swing.JDialog;
     23import javax.swing.JFrame;
    2424import javax.swing.JMenuItem;
    2525import javax.swing.JOptionPane;
     
    5858 * Help browser displaying HTML pages fetched from JOSM wiki.
    5959 */
    60 public class HelpBrowser extends JDialog implements IHelpBrowser {
     60public class HelpBrowser extends JFrame implements IHelpBrowser {
    6161
    6262    /** the unique instance */
     
    150150    }
    151151
     152    /**
     153     * Builds toolbar.
     154     * @return the toolbar
     155     */
    152156    protected JToolBar buildToolBar() {
    153157        JToolBar tb = new JToolBar();
     
    162166    }
    163167
     168    /**
     169     * Builds GUI.
     170     */
    164171    protected final void build() {
    165172        help = new JosmEditorPane();
     
    220227    }
    221228
     229    /**
     230     * Load help topic.
     231     * @param content topic contents
     232     */
    222233    protected void loadTopic(String content) {
    223234        Document document = help.getEditorKit().createDefaultDocument();
Note: See TracChangeset for help on using the changeset viewer.