helpframe.java

来自「world wind java sdk 源码」· Java 代码 · 共 56 行

JAVA
56
字号
/*Copyright (C) 2001, 2007 United States Governmentas represented by the Administrator of theNational Aeronautics and Space Administration.All Rights Reserved.*/package gov.nasa.worldwind.applications.sar;import java.awt.*;import java.io.*;import javax.swing.*;import javax.swing.text.html.*;/** * @author tag * @version $Id: HelpFrame.java 4947 2008-04-07 21:01:02Z dcollins $ */public class HelpFrame extends JFrame{    private JEditorPane helpPane;    public HelpFrame() throws IOException    {        initComponents();        this.loadHelpText();    }    private void loadHelpText() throws IOException    {        InputStream is = this.getClass().getResourceAsStream("SARHelp.html");        this.helpPane.read(is, new HTMLEditorKit());    }    private void initComponents()    {        //======== this ========        setTitle(SARApp.APP_NAME + " Help");        Container contentPane = getContentPane();        contentPane.setLayout(new BorderLayout());        //======== HelpPane ========        {            this.helpPane = new JEditorPane();            this.helpPane.setEditable(false);            this.helpPane.setPreferredSize(new Dimension(500, 600));            this.helpPane.setContentType("text/html");            JScrollPane scrollPane = new JScrollPane(this.helpPane);            contentPane.add(scrollPane, BorderLayout.CENTER);        }        pack();        SAR2.centerWindowInDesktop(this);    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?