📄 aboutwin.java
字号:
/* * aboutwin.java * * Created on 2007年12月23日, 下午2:35 */package com.sxy.frame;import java.util.logging.Level;import java.util.logging.Logger;import javax.swing.UIManager;import javax.swing.UnsupportedLookAndFeelException;/** * * @author Arthur */public class aboutwin extends javax.swing.JFrame { /** Creates new form aboutwin */ public aboutwin() { initComponents(); setTextInfo(); } /** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jScrollPane1 = new javax.swing.JScrollPane(); about = new javax.swing.JTextArea(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setTitle("关于"); setAlwaysOnTop(true); setResizable(false); getContentPane().setLayout(new java.awt.FlowLayout()); jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/image/i.JPG"))); // NOI18N jPanel1.add(jLabel1); about.setColumns(25); about.setEditable(false); about.setRows(7); jScrollPane1.setViewportView(about); jPanel1.add(jScrollPane1); getContentPane().add(jPanel1); java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize(); setBounds((screenSize.width-400)/2, (screenSize.height-200)/2, 400, 200); }// </editor-fold>//GEN-END:initComponents /** * @param args the command line arguments */ public void setTextInfo(){ String text="开源软件,禁止用于商业收费,\r\n如有违反,作者有权要求赔偿!!\r\n如有疑问请联系作者:\r\n山东农业大学信息科学与工程学院 \r\n04计算机11班盛兴亚\r\nQQ:306186902\r\nI'm waiting for you !!"; about.setText(text); } /* public static void main(String args[]) { try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); java.awt.EventQueue.invokeLater(new Runnable() { public void run() { new aboutwin().setVisible(true); } }); } catch (ClassNotFoundException ex) { Logger.getLogger(aboutwin.class.getName()).log(Level.SEVERE, null, ex); } catch (InstantiationException ex) { Logger.getLogger(aboutwin.class.getName()).log(Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { Logger.getLogger(aboutwin.class.getName()).log(Level.SEVERE, null, ex); } catch (UnsupportedLookAndFeelException ex) { Logger.getLogger(aboutwin.class.getName()).log(Level.SEVERE, null, ex); } }*/ // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JTextArea about; private javax.swing.JLabel jLabel1; private javax.swing.JPanel jPanel1; private javax.swing.JScrollPane jScrollPane1; // End of variables declaration//GEN-END:variables }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -