testframe.java

来自「iReport-0.4.1-src是iReport的源代码,iReport是一个」· Java 代码 · 共 64 行

JAVA
64
字号
/* * TestFrame.java * * Created on 14 giugno 2004, 23.06 */package it.businesslogic.ireport.gui.docking;/** * * @author  Administrator */public class TestFrame extends javax.swing.JFrame {            JDesktopPane jDesktopPane = null;    /** Creates new form TestFrame */    public TestFrame() {        initComponents();        jDesktopPane = new JDesktopPane();                //jDesktopPane.setPreferredSize(600,600);        this.setSize(600,600);        //this.pack();        DockablePanel dp = new DockablePanel();        dp.setSize(200,200);        jDesktopPane.add(dp );        getContentPane().add(jDesktopPane, java.awt.BorderLayout.CENTER);            }        /** 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.     */    private void initComponents() {//GEN-BEGIN:initComponents        addWindowListener(new java.awt.event.WindowAdapter() {            public void windowClosing(java.awt.event.WindowEvent evt) {                exitForm(evt);            }        });        pack();    }//GEN-END:initComponents        /** Exit the Application */    private void exitForm(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_exitForm        System.exit(0);    }//GEN-LAST:event_exitForm        /**     * @param args the command line arguments     */    public static void main(String args[]) {        new TestFrame().show();    }        // Variables declaration - do not modify//GEN-BEGIN:variables    // End of variables declaration//GEN-END:variables    }

⌨️ 快捷键说明

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