bsp; setSize(500, 500); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { System.exit(0); } } ); Container contentPane = getContentPane(); canvas = new PrintPanel(); // contentPane.add(canvas, "Center "); contentPane.add(canvas,BorderLayout.CENTER); JPanel buttonPanel = new JPanel(); printButton = new JButton( "Print "); buttonPanel.add(printButton); printButton.addActionListener(this); pageSetupButton = new JButton( "Page setup "); buttonPanel.add(pageSetupButton); pageSetupButton.addActionListener(this);&nbs
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ... 下一页 >>