⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jvtvhelp.java

📁 JavaTV Program source code Need to play Windows Media files and streams, mpeg4 video or DVDs in j
💻 JAVA
字号:
/* * Copyright (C) 2005 by Toth Bela This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */import javax.swing.JScrollBar;import javax.swing.JScrollPane;import javax.swing.JTextArea;import javax.swing.JScrollBar;import java.awt.BorderLayout;import javax.swing.SpringLayout;/* * JvtvHelp.java * * Created on 2005. augusztus 22., 8:04 *//** * this is the help form. here you can find faqs and other info. * @author tothb1 */public class JvtvHelp extends javax.swing.JFrame{        /** This method is called from within the constructor to     * initialize the form.     */    private void initComponents()    {        jPanel1 = new javax.swing.JPanel();        jPanel2 = new javax.swing.JPanel();        jScrollPane1 = new javax.swing.JScrollPane();        jScrollBar1 = new javax.swing.JScrollBar();        jTextArea2 = new javax.swing.JTextArea();        jButton1 = new javax.swing.JButton();        SpringLayout layout = new javax.swing.SpringLayout();        //	setAlwaysOnTop(true);        jButton1.setText("Close");        jButton1.addActionListener(new java.awt.event.ActionListener()        {            public void actionPerformed(java.awt.event.ActionEvent evt)            {                jButton1ActionPerformed(evt);            }        });                setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);        setTitle("Jvtv Help...");        addWindowListener(new java.awt.event.WindowAdapter()        {            public void windowOpened(java.awt.event.WindowEvent evt)            {                formWindowOpened(evt);            }        });                jPanel1.setLayout(new BorderLayout());                jScrollPane1.setPreferredSize(new java.awt.Dimension(350, 400));        jTextArea2.setColumns(1);        jTextArea2.setEditable(false);        jTextArea2.setLineWrap(true);        jTextArea2.setWrapStyleWord(true);        jScrollPane1.setViewportView(jTextArea2);        jPanel1.add(jScrollPane1, java.awt.BorderLayout.CENTER);                jPanel2.setLayout(layout);        jPanel2.setPreferredSize(new java.awt.Dimension(150,40));        layout.putConstraint(SpringLayout.EAST, jButton1,                -20,                SpringLayout.EAST, jPanel2);        layout.putConstraint(SpringLayout.NORTH, jButton1,                10,                SpringLayout.NORTH, jPanel2);                jPanel2.add(jButton1);        jPanel1.add(jPanel2, java.awt.BorderLayout.SOUTH);        getContentPane().add(jPanel1);        pack();    }        private void formWindowOpened(java.awt.event.WindowEvent evt)    {        load_text();    }        private void jButton1ActionPerformed(java.awt.event.ActionEvent evt)    {        dispose();    }        private javax.swing.JButton jButton1;    private javax.swing.JPanel jPanel1;    private javax.swing.JPanel jPanel2;    private javax.swing.JScrollBar jScrollBar1;    private javax.swing.JScrollPane jScrollPane1;    private javax.swing.JTextArea jTextArea2;        /**     * default constuctor     */    public JvtvHelp()    {        initComponents();    }        private void load_text()    {        java.io.File inFile = new java.io.File("doc/README");        try        {            java.io.FileReader fr = new java.io.FileReader(inFile);            java.io.BufferedReader bufRdr = new java.io.BufferedReader(fr);            String line = null;            while ((line = bufRdr.readLine()) != null)            {                jTextArea2.append(line);                jTextArea2.append("\n");                            }            bufRdr.close();        }        catch (java.io.IOException ioex)        {            System.err.println(ioex);        }                jTextArea2.insert("\n",0);            }    }

⌨️ 快捷键说明

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