矢量画图

private void exitMenuItemActionPerformed(java.awt.event.ActionEvent evt) { int tmp = JOptionPane.showConfirmDialog(this, "请选择是否退出程序?", "退出程序", JOptionPane.YES_NO_OPTION); if (tmp == 0) { System.exit(0); } } private void lineActionPerformed(java.awt.event.ActionEvent evt) { mode = 0; } private void circleActionPerformed(java.awt.event.ActionEvent evt) { mode = 1; } private void saveMenuItemActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void openMenuItemActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void editActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void rectangleActionPerformed(java.awt.event.ActionEvent evt) { mode = 2; } // Variables declaration - do not modify private javax.swing.JButton circle; private javax.swing.JMenuItem copyMenuItem; private javax.swing.JMenuItem cutMenuItem; private javax.swing.JButton edit; private javax.swing.JMenu editMenu; private javax.swing.JMenuItem exitMenuItem; private javax.swing.JMenu fileMenu; private javax.swing.JMenu helpMenu; private javax.swing.JMenuItem helpMenuItem; private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabel2; private javax.swing.JLabel jLabel3; private javax.swing.JLabel jLabel4; private javax.swing.JLabel jLabel5; private javax.swing.JLabel jLabel6; private javax.swing.JSeparator jSeparator1; private javax.swing.JButton line; private javax.swing.JMenuBar mainMenuBar; private javax.swing.JMenuItem pasteMenuItem; private javax.swing.JButton rectangle; private javax.swing.JMenuItem redoMenuItem; private javax.swing.JMenuItem saveMenuItem; private javax.swing.JToolBar toolBar; private javax.swing.JMenuItem undoMenuItem; // End of variables declaration

你可能感兴趣的:(java,swing)