/** @return file chooser in dialog */ public Component getCustomEditor() { final JFileChooser chooser = createFileChooser(); final javax.swing.JDialog dialog = new javax.swing.JDialog( TopManager.getDefault().getWindowManager().getMainWindow(), chooser.getDialogTitle(), true); // attach cancel also to Escape key dialog .getRootPane() .registerKeyboardAction( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { dialog.setVisible(false); dialog.dispose(); } }, javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ESCAPE, 0, true), javax.swing.JComponent.WHEN_IN_FOCUSED_WINDOW); dialog.addKeyListener( new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { if (evt.getKeyCode() == java.awt.event.KeyEvent.VK_ESCAPE) { dialog.setVisible(false); dialog.dispose(); } } }); dialog.getContentPane().setLayout(new java.awt.BorderLayout()); dialog.getContentPane().add(chooser, java.awt.BorderLayout.CENTER); chooser.addActionListener( new ActionListener() { public void actionPerformed(ActionEvent evt) { if (JFileChooser.APPROVE_SELECTION.equals(evt.getActionCommand())) { File f = chooser.getSelectedFile(); setValue(f); dialog.setVisible(false); dialog.dispose(); } else if (JFileChooser.CANCEL_SELECTION.equals(evt.getActionCommand())) { dialog.setVisible(false); dialog.dispose(); } } }); HelpCtx.setHelpIDString(dialog.getRootPane(), getHelpCtx().getHelpID()); return dialog; }
/** * 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. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); jPanel2 = new javax.swing.JPanel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); jLabel9 = new javax.swing.JLabel(); jLabel10 = new javax.swing.JLabel(); jLabel11 = new javax.swing.JLabel(); jLabel12 = new javax.swing.JLabel(); jLabel1 = new javax.swing.JLabel(); canvas1 = new my_canvas(this); jLabel2 = new javax.swing.JLabel(); jLabel13 = new javax.swing.JLabel(); jLabel14 = new javax.swing.JLabel(); jLabel15 = new javax.swing.JLabel(); jMenuBar1 = new javax.swing.JMenuBar(); jMenu1 = new javax.swing.JMenu(); jMenuItem1 = new javax.swing.JMenuItem(); jMenuItem2 = new javax.swing.JMenuItem(); jMenuItem3 = new javax.swing.JMenuItem(); jMenu2 = new javax.swing.JMenu(); jMenuItem4 = new javax.swing.JMenuItem(); jMenuItem5 = new javax.swing.JMenuItem(); jMenuItem6 = new javax.swing.JMenuItem(); jMenu3 = new javax.swing.JMenu(); jMenuItem7 = new javax.swing.JMenuItem(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("Robot Factory"); setBounds(new java.awt.Rectangle(100, 40, 606, 606)); setResizable(false); jPanel1.setPreferredSize(new java.awt.Dimension(616, 491)); jPanel2.setPreferredSize(new java.awt.Dimension(117, 469)); // jLabel3.setText("jLabel3"); jLabel3.setMaximumSize(new java.awt.Dimension(36, 16)); jLabel3.setName("jLabel3"); // NOI18N // jLabel4.setText("jLabel4"); jLabel4.setMaximumSize(new java.awt.Dimension(36, 16)); jLabel4.setName("jLabel4"); // NOI18N // jLabel5.setText("jLabel5"); jLabel5.setMaximumSize(new java.awt.Dimension(36, 16)); jLabel5.setName("jLabel5"); // NOI18N // jLabel6.setText("jLabel6"); jLabel6.setMaximumSize(new java.awt.Dimension(36, 16)); jLabel6.setName("jLabel6"); // NOI18N // jLabel7.setText("jLabel7"); jLabel7.setMaximumSize(new java.awt.Dimension(36, 16)); jLabel7.setName("jLabel7"); // NOI18N // jLabel8.setText("jLabel8"); jLabel8.setMaximumSize(new java.awt.Dimension(36, 16)); jLabel8.setName("jLabel8"); // NOI18N // jLabel9.setText("jLabel9"); jLabel9.setMaximumSize(new java.awt.Dimension(36, 16)); jLabel9.setName("jLabel9"); // NOI18N // jLabel10.setText("jLabel10"); jLabel10.setMaximumSize(new java.awt.Dimension(36, 16)); jLabel10.setMinimumSize(new java.awt.Dimension(34, 14)); jLabel10.setName("jLabel10"); // NOI18N jLabel10.setPreferredSize(new java.awt.Dimension(34, 14)); // jLabel11.setText("jLabel11"); jLabel11.setMaximumSize(new java.awt.Dimension(36, 16)); jLabel11.setMinimumSize(new java.awt.Dimension(34, 14)); jLabel11.setName("jLabel11"); // NOI18N jLabel11.setPreferredSize(new java.awt.Dimension(34, 14)); /*jLabel11.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jLabel11MouseClicked(evt); } });*/ // jLabel12.setText("jLabel12"); jLabel12.setMaximumSize(new java.awt.Dimension(36, 16)); jLabel12.setMinimumSize(new java.awt.Dimension(34, 14)); jLabel12.setName("jLabel12"); // NOI18N jLabel12.setPreferredSize(new java.awt.Dimension(34, 14)); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( jPanel2Layout .createSequentialGroup() .addContainerGap() .addGroup( jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent( jLabel11, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent( jLabel3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent( jLabel5, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup( jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( jPanel2Layout .createSequentialGroup() .addGap(45, 45, 45) .addGroup( jPanel2Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.TRAILING) .addComponent( jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent( jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent( jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup( jPanel2Layout .createSequentialGroup() .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup( jPanel2Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.TRAILING) .addComponent( jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent( jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent( jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent( jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addContainerGap(26, Short.MAX_VALUE))); jPanel2Layout.linkSize( javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] { jLabel10, jLabel11, jLabel12, jLabel3, jLabel4, jLabel5, jLabel6, jLabel7, jLabel8, jLabel9 }); jPanel2Layout.setVerticalGroup( jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( jPanel2Layout .createSequentialGroup() .addContainerGap() .addGroup( jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent( jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent( jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup( jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent( jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent( jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addComponent( jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent( jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent( jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent( jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addGroup( jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent( jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent( jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(229, Short.MAX_VALUE))); jPanel2Layout.linkSize( javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {jLabel3, jLabel4, jLabel5, jLabel6}); jPanel2Layout.linkSize( javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {jLabel11, jLabel12, jLabel7, jLabel8}); jPanel2Layout.linkSize( javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {jLabel10, jLabel9}); canvas1.setBackground(new java.awt.Color(51, 51, 255)); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( jPanel1Layout .createSequentialGroup() .addComponent( jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 149, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(19, 19, 19) .addComponent( canvas1, javax.swing.GroupLayout.PREFERRED_SIZE, 586, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(453, 453, 453)) .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 1207, Short.MAX_VALUE)); jPanel1Layout.setVerticalGroup( jPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( jPanel1Layout .createSequentialGroup() .addComponent( jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup( jPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent( jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, 586, Short.MAX_VALUE) .addComponent( canvas1, javax.swing.GroupLayout.PREFERRED_SIZE, 586, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap())); jLabel2.setText("Robot:"); jLabel13.setText("0 "); jLabel14.setText("Tape:"); jLabel15.setText(""); jMenu1.setMnemonic('F'); jMenu1.setText("File"); jMenuItem1.setAccelerator( javax.swing.KeyStroke.getKeyStroke( java.awt.event.KeyEvent.VK_1, java.awt.event.InputEvent.CTRL_MASK)); jMenuItem1.setText("Open Challenge"); jMenu1.add(jMenuItem1); jMenuItem2.setAccelerator( javax.swing.KeyStroke.getKeyStroke( java.awt.event.KeyEvent.VK_2, java.awt.event.InputEvent.CTRL_MASK)); jMenuItem2.setText("Load Solution"); jMenu1.add(jMenuItem2); jMenuItem3.setAccelerator( javax.swing.KeyStroke.getKeyStroke( java.awt.event.KeyEvent.VK_X, java.awt.event.InputEvent.CTRL_MASK)); jMenuItem3.setText("Quit"); jMenu1.add(jMenuItem3); jMenuBar1.add(jMenu1); jMenu2.setMnemonic('G'); jMenu2.setText("Game"); jMenuItem4.setText("Go"); jMenu2.add(jMenuItem4); jMenuItem5.setText("Pause"); jMenu2.add(jMenuItem5); jMenuItem6.setText("Faster"); jMenu2.add(jMenuItem6); jMenuBar1.add(jMenu2); jMenu3.setMnemonic('H'); jMenu3.setText("Help"); jMenuItem7.setMnemonic('H'); jMenuItem7.setText("Help"); jMenu3.add(jMenuItem7); jMenuBar1.add(jMenu3); setJMenuBar(jMenuBar1); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( layout .createSequentialGroup() .addContainerGap() .addComponent( jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent( jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(jLabel14) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent( jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 336, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent( jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 758, javax.swing.GroupLayout.PREFERRED_SIZE)); layout.setVerticalGroup( layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( javax.swing.GroupLayout.Alignment.TRAILING, layout .createSequentialGroup() .addComponent( jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 629, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup( layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel2) .addComponent(jLabel13) .addComponent(jLabel14) .addComponent(jLabel15)) .addContainerGap())); layout.linkSize( javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {jLabel13, jLabel14, jLabel15, jLabel2}); getAccessibleContext().setAccessibleName("myframe"); pack(); } // </editor-fold>//GEN-END:initComponents
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jToolBar1 = new javax.swing.JToolBar(); jPanel1 = new javax.swing.JPanel(); txtUserID = new javax.swing.JTextField(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); txtUserName = new javax.swing.JTextField(); lbHour = new javax.swing.JLabel(); lbDate = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); lbYear = new javax.swing.JLabel(); jMenuBar1 = new javax.swing.JMenuBar(); mnMaster = new javax.swing.JMenu(); mnMasterTitle = new javax.swing.JMenuItem(); mnMasterEmployee = new javax.swing.JMenuItem(); mnMasterBudgetGroup = new javax.swing.JMenuItem(); mnMasterBudgetDetail = new javax.swing.JMenuItem(); mnTransaction = new javax.swing.JMenu(); mnTransactionBeginningBalance = new javax.swing.JMenuItem(); mnTransactionBudgetUsage = new javax.swing.JMenuItem(); mnTransactionBudgetTransfer = new javax.swing.JMenuItem(); mnTransactionEndofYear = new javax.swing.JMenuItem(); mnLaporan = new javax.swing.JMenu(); mnRptMasterBudget = new javax.swing.JMenuItem(); mnRptBudgetUsage = new javax.swing.JMenuItem(); mnRptTrxBudgetUsage = new javax.swing.JMenuItem(); mnRptTrxBudgetTransfer = new javax.swing.JMenuItem(); mnUser = new javax.swing.JMenu(); mnMasterUser = new javax.swing.JMenuItem(); mnUserFunction = new javax.swing.JMenuItem(); mnChangePassword = new javax.swing.JMenuItem(); mnExit = new javax.swing.JMenu(); mnLogOff = new javax.swing.JMenuItem(); mnExitExit = new javax.swing.JMenuItem(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("OPC Budget Controlling Program"); addWindowListener( new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { FrmMainMenu.this.windowClosing(evt); } }); jToolBar1.setRollover(true); jPanel1.setBackground(new java.awt.Color(255, 51, 51)); txtUserID.setBackground(new java.awt.Color(204, 255, 204)); txtUserID.setFont(new java.awt.Font("Tahoma", 1, 12)); txtUserID.setDisabledTextColor(new java.awt.Color(255, 51, 51)); txtUserID.setEnabled(false); jLabel1.setFont(new java.awt.Font("Tahoma", 1, 12)); jLabel1.setText("User ID"); jLabel2.setFont(new java.awt.Font("Tahoma", 1, 12)); jLabel2.setText("User Name"); txtUserName.setBackground(new java.awt.Color(204, 255, 204)); txtUserName.setFont(new java.awt.Font("Tahoma", 1, 12)); txtUserName.setDisabledTextColor(new java.awt.Color(255, 51, 51)); txtUserName.setEnabled(false); lbHour.setBackground(new java.awt.Color(51, 51, 255)); lbHour.setFont(new java.awt.Font("Tahoma", 1, 12)); lbHour.setForeground(new java.awt.Color(51, 255, 51)); lbDate.setBackground(new java.awt.Color(51, 51, 255)); lbDate.setFont(new java.awt.Font("Tahoma", 1, 12)); lbDate.setForeground(new java.awt.Color(51, 255, 51)); jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); jLabel3.setText("Budget Year"); lbYear.setBackground(new java.awt.Color(51, 51, 255)); lbYear.setFont(new java.awt.Font("Tahoma", 1, 12)); lbYear.setForeground(new java.awt.Color(51, 255, 51)); org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add( jPanel1Layout .createSequentialGroup() .addContainerGap() .add(jLabel1) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add( txtUserID, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 123, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(18, 18, 18) .add( jLabel2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add( txtUserName, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 133, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(26, 26, 26) .add( lbDate, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 123, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED) .add( lbHour, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 85, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(75, 75, 75) .add( jLabel3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED) .add( lbYear, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 62, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(50, 50, 50))); jPanel1Layout.setVerticalGroup( jPanel1Layout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add( jPanel1Layout .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add( txtUserID, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(jLabel1) .add( txtUserName, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(jLabel2) .add( lbDate, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 20, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add( lbHour, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 20, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add( lbYear, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 20, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(jLabel3))); jToolBar1.add(jPanel1); mnMaster.setBackground(new java.awt.Color(204, 255, 255)); mnMaster.setText("Master"); mnMaster.setFont(new java.awt.Font("Tahoma", 1, 12)); mnMasterTitle.setAccelerator( javax.swing.KeyStroke.getKeyStroke( java.awt.event.KeyEvent.VK_L, java.awt.event.InputEvent.CTRL_MASK)); mnMasterTitle.setBackground(new java.awt.Color(255, 255, 204)); mnMasterTitle.setFont(new java.awt.Font("Tahoma", 1, 12)); mnMasterTitle.setText("Title"); mnMasterTitle.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnMasterTitleActionPerformed(evt); } }); mnMaster.add(mnMasterTitle); mnMasterEmployee.setAccelerator( javax.swing.KeyStroke.getKeyStroke( java.awt.event.KeyEvent.VK_Y, java.awt.event.InputEvent.CTRL_MASK)); mnMasterEmployee.setBackground(new java.awt.Color(255, 255, 204)); mnMasterEmployee.setFont(new java.awt.Font("Tahoma", 1, 12)); mnMasterEmployee.setText("Employee"); mnMasterEmployee.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnMasterEmployeeActionPerformed(evt); } }); mnMaster.add(mnMasterEmployee); mnMasterBudgetGroup.setAccelerator( javax.swing.KeyStroke.getKeyStroke( java.awt.event.KeyEvent.VK_G, java.awt.event.InputEvent.CTRL_MASK)); mnMasterBudgetGroup.setBackground(new java.awt.Color(255, 255, 204)); mnMasterBudgetGroup.setFont(new java.awt.Font("Tahoma", 1, 12)); mnMasterBudgetGroup.setText("Budget Group"); mnMasterBudgetGroup.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnMasterBudgetGroupActionPerformed(evt); } }); mnMaster.add(mnMasterBudgetGroup); mnMasterBudgetDetail.setAccelerator( javax.swing.KeyStroke.getKeyStroke( java.awt.event.KeyEvent.VK_D, java.awt.event.InputEvent.CTRL_MASK)); mnMasterBudgetDetail.setBackground(new java.awt.Color(255, 255, 204)); mnMasterBudgetDetail.setFont(new java.awt.Font("Tahoma", 1, 12)); mnMasterBudgetDetail.setText("Budget Detail"); mnMasterBudgetDetail.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnMasterBudgetDetailActionPerformed(evt); } }); mnMaster.add(mnMasterBudgetDetail); jMenuBar1.add(mnMaster); mnTransaction.setBackground(new java.awt.Color(204, 255, 255)); mnTransaction.setText("Transaction"); mnTransaction.setFont(new java.awt.Font("Tahoma", 1, 12)); mnTransactionBeginningBalance.setAccelerator( javax.swing.KeyStroke.getKeyStroke( java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK)); mnTransactionBeginningBalance.setBackground(new java.awt.Color(255, 255, 204)); mnTransactionBeginningBalance.setFont(new java.awt.Font("Tahoma", 1, 12)); mnTransactionBeginningBalance.setText("Beginning Balance"); mnTransactionBeginningBalance.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnTransactionBeginningBalanceActionPerformed(evt); } }); mnTransaction.add(mnTransactionBeginningBalance); mnTransactionBudgetUsage.setAccelerator( javax.swing.KeyStroke.getKeyStroke( java.awt.event.KeyEvent.VK_P, java.awt.event.InputEvent.CTRL_MASK)); mnTransactionBudgetUsage.setBackground(new java.awt.Color(255, 255, 204)); mnTransactionBudgetUsage.setFont(new java.awt.Font("Tahoma", 1, 12)); mnTransactionBudgetUsage.setText("Budget Usage"); mnTransactionBudgetUsage.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnTransactionBudgetUsageActionPerformed(evt); } }); mnTransaction.add(mnTransactionBudgetUsage); mnTransactionBudgetTransfer.setAccelerator( javax.swing.KeyStroke.getKeyStroke( java.awt.event.KeyEvent.VK_F, java.awt.event.InputEvent.CTRL_MASK)); mnTransactionBudgetTransfer.setBackground(new java.awt.Color(255, 255, 204)); mnTransactionBudgetTransfer.setFont(new java.awt.Font("Tahoma", 1, 12)); mnTransactionBudgetTransfer.setText("Budget Transfer"); mnTransactionBudgetTransfer.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnTransactionBudgetTransferActionPerformed(evt); } }); mnTransaction.add(mnTransactionBudgetTransfer); mnTransactionEndofYear.setAccelerator( javax.swing.KeyStroke.getKeyStroke( java.awt.event.KeyEvent.VK_T, java.awt.event.InputEvent.CTRL_MASK)); mnTransactionEndofYear.setBackground(new java.awt.Color(255, 255, 204)); mnTransactionEndofYear.setFont(new java.awt.Font("Tahoma", 1, 12)); mnTransactionEndofYear.setText("End of Year"); mnTransactionEndofYear.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnTransactionEndofYearActionPerformed(evt); } }); mnTransaction.add(mnTransactionEndofYear); jMenuBar1.add(mnTransaction); mnLaporan.setBackground(new java.awt.Color(204, 255, 255)); mnLaporan.setText("Report"); mnLaporan.setFont(new java.awt.Font("Tahoma", 1, 12)); mnRptMasterBudget.setBackground(new java.awt.Color(255, 255, 204)); mnRptMasterBudget.setFont(new java.awt.Font("Tahoma", 1, 12)); mnRptMasterBudget.setText("Master Budget"); mnRptMasterBudget.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnRptMasterBudgetActionPerformed(evt); } }); mnLaporan.add(mnRptMasterBudget); mnRptBudgetUsage.setBackground(new java.awt.Color(255, 255, 204)); mnRptBudgetUsage.setFont(new java.awt.Font("Tahoma", 1, 12)); mnRptBudgetUsage.setText("Budget Detail Per Month"); mnRptBudgetUsage.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnRptBudgetUsageActionPerformed(evt); } }); mnLaporan.add(mnRptBudgetUsage); mnRptTrxBudgetUsage.setBackground(new java.awt.Color(255, 255, 204)); mnRptTrxBudgetUsage.setFont(new java.awt.Font("Tahoma", 1, 12)); mnRptTrxBudgetUsage.setText("Trx. Budget Usage"); mnRptTrxBudgetUsage.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnRptTrxBudgetUsageActionPerformed(evt); } }); mnLaporan.add(mnRptTrxBudgetUsage); mnRptTrxBudgetTransfer.setBackground(new java.awt.Color(255, 255, 204)); mnRptTrxBudgetTransfer.setFont(new java.awt.Font("Tahoma", 1, 12)); mnRptTrxBudgetTransfer.setText("Trx. Budget Transfer"); mnRptTrxBudgetTransfer.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnRptTrxBudgetTransferActionPerformed(evt); } }); mnLaporan.add(mnRptTrxBudgetTransfer); jMenuBar1.add(mnLaporan); mnUser.setBackground(new java.awt.Color(204, 255, 255)); mnUser.setText("Users Management"); mnUser.setFont(new java.awt.Font("Tahoma", 1, 12)); mnMasterUser.setAccelerator( javax.swing.KeyStroke.getKeyStroke( java.awt.event.KeyEvent.VK_F5, java.awt.event.InputEvent.CTRL_MASK)); mnMasterUser.setBackground(new java.awt.Color(255, 255, 204)); mnMasterUser.setFont(new java.awt.Font("Tahoma", 1, 12)); mnMasterUser.setText("User"); mnMasterUser.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnMasterUserActionPerformed(evt); } }); mnUser.add(mnMasterUser); mnUserFunction.setAccelerator( javax.swing.KeyStroke.getKeyStroke( java.awt.event.KeyEvent.VK_F6, java.awt.event.InputEvent.CTRL_MASK)); mnUserFunction.setBackground(new java.awt.Color(255, 255, 204)); mnUserFunction.setFont(new java.awt.Font("Tahoma", 1, 12)); mnUserFunction.setText("User Functions"); mnUserFunction.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnUserFunctionActionPerformed(evt); } }); mnUser.add(mnUserFunction); mnChangePassword.setAccelerator( javax.swing.KeyStroke.getKeyStroke( java.awt.event.KeyEvent.VK_F7, java.awt.event.InputEvent.CTRL_MASK)); mnChangePassword.setBackground(new java.awt.Color(255, 255, 204)); mnChangePassword.setFont(new java.awt.Font("Tahoma", 1, 12)); mnChangePassword.setText("Change Password"); mnChangePassword.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnChangePasswordActionPerformed(evt); } }); mnUser.add(mnChangePassword); jMenuBar1.add(mnUser); mnExit.setBackground(new java.awt.Color(204, 255, 255)); mnExit.setText("Exit"); mnExit.setFont(new java.awt.Font("Tahoma", 1, 12)); mnLogOff.setAccelerator( javax.swing.KeyStroke.getKeyStroke( java.awt.event.KeyEvent.VK_O, java.awt.event.InputEvent.CTRL_MASK)); mnLogOff.setBackground(new java.awt.Color(255, 255, 204)); mnLogOff.setFont(new java.awt.Font("Tahoma", 1, 12)); mnLogOff.setText("Log Off"); mnLogOff.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnLogOffActionPerformed(evt); } }); mnExit.add(mnLogOff); mnExitExit.setAccelerator( javax.swing.KeyStroke.getKeyStroke( java.awt.event.KeyEvent.VK_E, java.awt.event.InputEvent.CTRL_MASK)); mnExitExit.setBackground(new java.awt.Color(255, 255, 204)); mnExitExit.setFont(new java.awt.Font("Tahoma", 1, 12)); mnExitExit.setText("Exit"); mnExitExit.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnExitExitActionPerformed(evt); } }); mnExit.add(mnExitExit); jMenuBar1.add(mnExit); setJMenuBar(jMenuBar1); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jToolBar1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 925, Short.MAX_VALUE)); layout.setVerticalGroup( layout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add( layout .createSequentialGroup() .add( jToolBar1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 25, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addContainerGap(649, Short.MAX_VALUE))); pack(); java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize(); java.awt.Dimension dialogSize = getSize(); setLocation( (screenSize.width - dialogSize.width) / 2, (screenSize.height - dialogSize.height) / 2); } // </editor-fold>//GEN-END:initComponents
/** * 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. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { mainPanel = new javax.swing.JPanel(); gamesPane = new jchess.display.windows.JChessTabbedPane(); menuBar = new javax.swing.JMenuBar(); javax.swing.JMenu fileMenu = new javax.swing.JMenu(); newGameItem = new javax.swing.JMenuItem(); // loadGameItem = new javax.swing.JMenuItem(); // saveGameItem = new javax.swing.JMenuItem(); javax.swing.JMenuItem exitMenuItem = new javax.swing.JMenuItem(); gameMenu = new javax.swing.JMenu(); moveBackItem = new javax.swing.JMenuItem(); moveForwardItem = new javax.swing.JMenuItem(); rewindToBegin = new javax.swing.JMenuItem(); rewindToEnd = new javax.swing.JMenuItem(); // optionsMenu = new javax.swing.JMenu(); // themeSettingsMenu = new javax.swing.JMenuItem(); // javax.swing.JMenu helpMenu = new javax.swing.JMenu(); javax.swing.JMenuItem aboutMenuItem = new javax.swing.JMenuItem(); statusPanel = new javax.swing.JPanel(); javax.swing.JSeparator statusPanelSeparator = new javax.swing.JSeparator(); statusMessageLabel = new javax.swing.JLabel(); statusAnimationLabel = new javax.swing.JLabel(); progressBar = new javax.swing.JProgressBar(); mainPanel.setMaximumSize(new java.awt.Dimension(800, 600)); mainPanel.setMinimumSize(new java.awt.Dimension(800, 600)); mainPanel.setName("mainPanel"); // NOI18N mainPanel.setPreferredSize(new java.awt.Dimension(800, 600)); gamesPane.setName("gamesPane"); // NOI18N javax.swing.GroupLayout mainPanelLayout = new javax.swing.GroupLayout(mainPanel); mainPanel.setLayout(mainPanelLayout); mainPanelLayout.setHorizontalGroup( mainPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( mainPanelLayout .createSequentialGroup() .addContainerGap() .addComponent( gamesPane, javax.swing.GroupLayout.DEFAULT_SIZE, 776, Short.MAX_VALUE) .addContainerGap())); mainPanelLayout.setVerticalGroup( mainPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( mainPanelLayout .createSequentialGroup() .addContainerGap() .addComponent( gamesPane, javax.swing.GroupLayout.DEFAULT_SIZE, 580, Short.MAX_VALUE))); menuBar.setName("menuBar"); // NOI18N org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(jchess.JChessApp.class) .getContext() .getResourceMap(JChessView.class); fileMenu.setText(resourceMap.getString("fileMenu.text")); // NOI18N fileMenu.setName("fileMenu"); // NOI18N newGameItem.setAccelerator( javax.swing.KeyStroke.getKeyStroke( java.awt.event.KeyEvent.VK_N, java.awt.event.InputEvent.CTRL_MASK)); newGameItem.setText(resourceMap.getString("newGameItem.text")); // NOI18N newGameItem.setName("newGameItem"); // NOI18N fileMenu.add(newGameItem); newGameItem.addActionListener(this); /* loadGameItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_L, java.awt.event.InputEvent.CTRL_MASK)); loadGameItem.setText(resourceMap.getString("loadGameItem.text")); // NOI18N loadGameItem.setName("loadGameItem"); // NOI18N fileMenu.add(loadGameItem); loadGameItem.addActionListener(this); */ /* saveGameItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK)); saveGameItem.setText(resourceMap.getString("saveGameItem.text")); // NOI18N saveGameItem.setName("saveGameItem"); // NOI18N fileMenu.add(saveGameItem); saveGameItem.addActionListener(this); */ javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(jchess.JChessApp.class) .getContext() .getActionMap(JChessView.class, this); exitMenuItem.setAction(actionMap.get("quit")); // NOI18N exitMenuItem.setName("exitMenuItem"); // NOI18N fileMenu.add(exitMenuItem); menuBar.add(fileMenu); gameMenu.setText(resourceMap.getString("gameMenu.text")); // NOI18N gameMenu.setName("gameMenu"); // NOI18N moveBackItem.setAccelerator( javax.swing.KeyStroke.getKeyStroke( java.awt.event.KeyEvent.VK_Z, java.awt.event.InputEvent.CTRL_MASK)); moveBackItem.setText(resourceMap.getString("moveBackItem.text")); // NOI18N moveBackItem.setName("moveBackItem"); // NOI18N moveBackItem.addMouseListener( new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { moveBackItemMouseClicked(evt); } }); moveBackItem.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { moveBackItemActionPerformed(evt); } }); gameMenu.add(moveBackItem); moveForwardItem.setAccelerator( javax.swing.KeyStroke.getKeyStroke( java.awt.event.KeyEvent.VK_Y, java.awt.event.InputEvent.CTRL_MASK)); moveForwardItem.setText(resourceMap.getString("moveForwardItem.text")); // NOI18N moveForwardItem.setName("moveForwardItem"); // NOI18N moveForwardItem.addMouseListener( new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { moveForwardItemMouseClicked(evt); } }); moveForwardItem.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { moveForwardItemActionPerformed(evt); } }); gameMenu.add(moveForwardItem); rewindToBegin.setAccelerator( javax.swing.KeyStroke.getKeyStroke( java.awt.event.KeyEvent.VK_Z, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK)); rewindToBegin.setText(resourceMap.getString("rewindToBegin.text")); // NOI18N rewindToBegin.setName("rewindToBegin"); // NOI18N rewindToBegin.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { rewindToBeginActionPerformed(evt); } }); gameMenu.add(rewindToBegin); rewindToEnd.setAccelerator( javax.swing.KeyStroke.getKeyStroke( java.awt.event.KeyEvent.VK_Y, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK)); rewindToEnd.setText(resourceMap.getString("rewindToEnd.text")); // NOI18N rewindToEnd.setName("rewindToEnd"); // NOI18N rewindToEnd.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { rewindToEndActionPerformed(evt); } }); gameMenu.add(rewindToEnd); menuBar.add(gameMenu); /* optionsMenu.setText(resourceMap.getString("optionsMenu.text")); // NOI18N optionsMenu.setName("optionsMenu"); // NOI18N themeSettingsMenu.setText(resourceMap.getString("themeSettingsMenu.text")); // NOI18N themeSettingsMenu.setName("themeSettingsMenu"); // NOI18N optionsMenu.add(themeSettingsMenu); themeSettingsMenu.addActionListener(this); menuBar.add(optionsMenu);*/ /* helpMenu.setText(resourceMap.getString("helpMenu.text")); // NOI18N helpMenu.setName("helpMenu"); // NOI18N aboutMenuItem.setAction(actionMap.get("showAboutBox")); // NOI18N aboutMenuItem.setName("aboutMenuItem"); // NOI18N helpMenu.add(aboutMenuItem); menuBar.add(helpMenu);*/ statusPanel.setName("statusPanel"); // NOI18N statusPanelSeparator.setName("statusPanelSeparator"); // NOI18N statusMessageLabel.setName("statusMessageLabel"); // NOI18N statusAnimationLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); statusAnimationLabel.setName("statusAnimationLabel"); // NOI18N progressBar.setName("progressBar"); // NOI18N javax.swing.GroupLayout statusPanelLayout = new javax.swing.GroupLayout(statusPanel); statusPanel.setLayout(statusPanelLayout); statusPanelLayout.setHorizontalGroup( statusPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent( statusPanelSeparator, javax.swing.GroupLayout.DEFAULT_SIZE, 800, Short.MAX_VALUE) .addGroup( statusPanelLayout .createSequentialGroup() .addContainerGap() .addComponent(statusMessageLabel) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED, 616, Short.MAX_VALUE) .addComponent( progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(statusAnimationLabel) .addContainerGap())); statusPanelLayout.setVerticalGroup( statusPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( statusPanelLayout .createSequentialGroup() .addComponent( statusPanelSeparator, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup( statusPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(statusMessageLabel) .addComponent(statusAnimationLabel) .addComponent( progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(3, 3, 3))); setComponent(mainPanel); setMenuBar(menuBar); setStatusBar(statusPanel); } // </editor-fold>//GEN-END:initComponents
/** * 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 Menuppal = new javax.swing.JMenuBar(); MenuArchivos = new javax.swing.JMenu(); MenuArchivosProveedores = new javax.swing.JMenuItem(); MenuArchivosConceptosDeCtasXPagar = new javax.swing.JMenuItem(); jSeparator1 = new javax.swing.JSeparator(); MenuArchivosSaldoGralDelProveedor = new javax.swing.JMenuItem(); MenuArchivosPagosDelDia = new javax.swing.JMenuItem(); MenuArchivosPronosticoDePagos = new javax.swing.JMenuItem(); MenuArchivosAntiguedadDeSaldo = new javax.swing.JMenuItem(); MenuArchivosResumenDeMovimientos = new javax.swing.JMenuItem(); jSeparator2 = new javax.swing.JSeparator(); MenuArchivosPorConcepto = new javax.swing.JMenuItem(); jSeparator3 = new javax.swing.JSeparator(); MenuArchivosImprimir = new javax.swing.JMenuItem(); MenuArchivosPresentacionPreliminar = new javax.swing.JMenuItem(); MenuArchivosEditorDeFormatos = new javax.swing.JMenu(); MenuArchivosEditorDeFormatosEditor = new javax.swing.JMenuItem(); MenuArchivosEditorDeFormatosListaDeCampos = new javax.swing.JMenuItem(); MenuArchivosEditorDeFormatosListaDeComandos = new javax.swing.JMenuItem(); jSeparator4 = new javax.swing.JSeparator(); MenuArchivosIra = new javax.swing.JMenu(); MenuArchivosIraClientesYCuentasXCobrar = new javax.swing.JMenuItem(); MenuArchivosIraFacturasYVendedores = new javax.swing.JMenuItem(); MenuArchivosIraInventariosYServicios = new javax.swing.JMenuItem(); MenuArchivosIraCompras = new javax.swing.JMenuItem(); MenuArchivosSalir = new javax.swing.JMenuItem(); MenuEdicion = new javax.swing.JMenu(); MenuEdicionAgregar = new javax.swing.JMenuItem(); MenuEdicionModificar = new javax.swing.JMenuItem(); MenuEdicionEliminar = new javax.swing.JMenuItem(); jSeparator5 = new javax.swing.JSeparator(); MenuEdicionCopiar = new javax.swing.JMenuItem(); MenuEdicionPegar = new javax.swing.JMenuItem(); jSeparator6 = new javax.swing.JSeparator(); MenuEdicionAltaDeMovCXP = new javax.swing.JMenuItem(); MenuEdicionSuspensionDeProveedores = new javax.swing.JMenuItem(); MenuVer = new javax.swing.JMenu(); MenuVerBuscar = new javax.swing.JMenuItem(); MenuVerSiguiente = new javax.swing.JMenuItem(); MenuVerFiltrar = new javax.swing.JMenuItem(); MenuVerRestaurar = new javax.swing.JMenuItem(); MenuVerPersonalizacionDeConsultas = new javax.swing.JMenuItem(); MenuReportes = new javax.swing.JMenu(); MenuReportesProveedores = new javax.swing.JMenu(); MenuReportesProveedoresCatalogo = new javax.swing.JMenuItem(); MenuReportesProveedoresAcumulados = new javax.swing.JMenuItem(); MenuReportesProveedoresEtiquetas = new javax.swing.JMenuItem(); jSeparator7 = new javax.swing.JSeparator(); MenuReportesPagosGenerales = new javax.swing.JMenuItem(); MenuReportesEdoCuentaGral = new javax.swing.JMenuItem(); MenuReportesEdoCuentaDetallado = new javax.swing.JMenuItem(); MenuReportesReporteXConcepto = new javax.swing.JMenuItem(); MenuReportesResumenDeMovimientos = new javax.swing.JMenuItem(); jSeparator8 = new javax.swing.JSeparator(); MenuReportesPronosticoDePagos = new javax.swing.JMenuItem(); MenuReportesAntiguedadDeSaldos = new javax.swing.JMenuItem(); MenuReportesAutorizacionDeCheques = new javax.swing.JMenuItem(); MenuReportesEmisionDeDocumentos = new javax.swing.JMenuItem(); MenuHerramientas = new javax.swing.JMenu(); MenuHerramientasActualizacionDeSaldos = new javax.swing.JMenuItem(); MenuHerramientasGeneracionDeChequesParaPago = new javax.swing.JMenuItem(); MenuHerramientasPagoAProveedores = new javax.swing.JMenuItem(); setIconifiable(true); setMaximizable(true); setTitle("Proveedores y Cuentas por Pagar"); setToolTipText("Ventana principal de proveedores y cuentas por pagar"); MenuArchivos.setText("Archivos"); MenuArchivosProveedores.setText("Proveedores"); MenuArchivos.add(MenuArchivosProveedores); MenuArchivosConceptosDeCtasXPagar.setText("Conceptos de Cuentas X Pagar"); MenuArchivos.add(MenuArchivosConceptosDeCtasXPagar); MenuArchivos.add(jSeparator1); MenuArchivosSaldoGralDelProveedor.setText("Saldo General del Proveedor"); MenuArchivos.add(MenuArchivosSaldoGralDelProveedor); MenuArchivosPagosDelDia.setText("Pagos del dia"); MenuArchivos.add(MenuArchivosPagosDelDia); MenuArchivosPronosticoDePagos.setText("Pronosticos de pago"); MenuArchivos.add(MenuArchivosPronosticoDePagos); MenuArchivosAntiguedadDeSaldo.setText("Antiguedad de saldo"); MenuArchivos.add(MenuArchivosAntiguedadDeSaldo); MenuArchivosResumenDeMovimientos.setText("Resumen de Movimientos"); MenuArchivos.add(MenuArchivosResumenDeMovimientos); MenuArchivos.add(jSeparator2); MenuArchivosPorConcepto.setText("Por Concepto"); MenuArchivos.add(MenuArchivosPorConcepto); MenuArchivos.add(jSeparator3); MenuArchivosImprimir.setText("Imprimir"); MenuArchivos.add(MenuArchivosImprimir); MenuArchivosPresentacionPreliminar.setText("Presentacion Preliminar"); MenuArchivos.add(MenuArchivosPresentacionPreliminar); MenuArchivosEditorDeFormatos.setText("Editor de formatos"); MenuArchivosEditorDeFormatosEditor.setText("Editor"); MenuArchivosEditorDeFormatos.add(MenuArchivosEditorDeFormatosEditor); MenuArchivosEditorDeFormatosListaDeCampos.setText("lista de campos"); MenuArchivosEditorDeFormatos.add(MenuArchivosEditorDeFormatosListaDeCampos); MenuArchivosEditorDeFormatosListaDeComandos.setText("Lista de comandos"); MenuArchivosEditorDeFormatos.add(MenuArchivosEditorDeFormatosListaDeComandos); MenuArchivos.add(MenuArchivosEditorDeFormatos); MenuArchivos.add(jSeparator4); MenuArchivosIra.setText("Ir a..."); MenuArchivosIraClientesYCuentasXCobrar.setText("Clientes y Cuentas X Cobrar"); MenuArchivosIra.add(MenuArchivosIraClientesYCuentasXCobrar); MenuArchivosIraFacturasYVendedores.setText("Facturas y Vendedores"); MenuArchivosIra.add(MenuArchivosIraFacturasYVendedores); MenuArchivosIraInventariosYServicios.setText("Inventarios y Servicios"); MenuArchivosIra.add(MenuArchivosIraInventariosYServicios); MenuArchivosIraCompras.setText("Compras"); MenuArchivosIra.add(MenuArchivosIraCompras); MenuArchivos.add(MenuArchivosIra); MenuArchivosSalir.setText("Salir"); MenuArchivosSalir.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { MenuArchivosSalirActionPerformed(evt); } }); MenuArchivos.add(MenuArchivosSalir); Menuppal.add(MenuArchivos); MenuEdicion.setText("Edicion"); MenuEdicionAgregar.setAccelerator( javax.swing.KeyStroke.getKeyStroke( java.awt.event.KeyEvent.VK_INSERT, java.awt.event.InputEvent.ALT_MASK)); MenuEdicionAgregar.setText("Agregar"); MenuEdicion.add(MenuEdicionAgregar); MenuEdicionModificar.setAccelerator( javax.swing.KeyStroke.getKeyStroke( java.awt.event.KeyEvent.VK_BACK_SPACE, java.awt.event.InputEvent.ALT_MASK)); MenuEdicionModificar.setText("Modificar"); MenuEdicion.add(MenuEdicionModificar); MenuEdicionEliminar.setAccelerator( javax.swing.KeyStroke.getKeyStroke( java.awt.event.KeyEvent.VK_DELETE, java.awt.event.InputEvent.ALT_MASK)); MenuEdicionEliminar.setText("Eliminar"); MenuEdicion.add(MenuEdicionEliminar); MenuEdicion.add(jSeparator5); MenuEdicionCopiar.setAccelerator( javax.swing.KeyStroke.getKeyStroke( java.awt.event.KeyEvent.VK_INSERT, java.awt.event.InputEvent.CTRL_MASK)); MenuEdicionCopiar.setText("Copiar"); MenuEdicion.add(MenuEdicionCopiar); MenuEdicionPegar.setAccelerator( javax.swing.KeyStroke.getKeyStroke( java.awt.event.KeyEvent.VK_INSERT, java.awt.event.InputEvent.SHIFT_MASK)); MenuEdicionPegar.setText("Pegar"); MenuEdicion.add(MenuEdicionPegar); MenuEdicion.add(jSeparator6); MenuEdicionAltaDeMovCXP.setText("Alta de Mov. de Cuenta X Pagar"); MenuEdicion.add(MenuEdicionAltaDeMovCXP); MenuEdicionSuspensionDeProveedores.setText("Suspension de proveedores"); MenuEdicion.add(MenuEdicionSuspensionDeProveedores); Menuppal.add(MenuEdicion); MenuVer.setText("Ver"); MenuVerBuscar.setAccelerator( javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F3, 0)); MenuVerBuscar.setText("Buscar..."); MenuVer.add(MenuVerBuscar); MenuVerSiguiente.setAccelerator( javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F4, 0)); MenuVerSiguiente.setText("Siguiente"); MenuVer.add(MenuVerSiguiente); MenuVerFiltrar.setAccelerator( javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F5, 0)); MenuVerFiltrar.setText("Filtrar"); MenuVer.add(MenuVerFiltrar); MenuVerRestaurar.setAccelerator( javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F6, 0)); MenuVerRestaurar.setText("Restaurar"); MenuVer.add(MenuVerRestaurar); MenuVerPersonalizacionDeConsultas.setText("Personalizacion de Consultas"); MenuVer.add(MenuVerPersonalizacionDeConsultas); Menuppal.add(MenuVer); MenuReportes.setText("Reportes"); MenuReportesProveedores.setText("Proveedores"); MenuReportesProveedoresCatalogo.setText("Catalogo de Proveedores"); MenuReportesProveedores.add(MenuReportesProveedoresCatalogo); MenuReportesProveedoresAcumulados.setText("Acumulados"); MenuReportesProveedores.add(MenuReportesProveedoresAcumulados); MenuReportesProveedoresEtiquetas.setText("Etiquetas"); MenuReportesProveedores.add(MenuReportesProveedoresEtiquetas); MenuReportes.add(MenuReportesProveedores); MenuReportes.add(jSeparator7); MenuReportesPagosGenerales.setText("Pagos Generales"); MenuReportes.add(MenuReportesPagosGenerales); MenuReportesEdoCuentaGral.setText("Estado de cuenta general"); MenuReportes.add(MenuReportesEdoCuentaGral); MenuReportesEdoCuentaDetallado.setText("Estado de cuenta detallado"); MenuReportes.add(MenuReportesEdoCuentaDetallado); MenuReportesReporteXConcepto.setText("Reporte X Concepto"); MenuReportes.add(MenuReportesReporteXConcepto); MenuReportesResumenDeMovimientos.setText("Resumen de Movimientos"); MenuReportes.add(MenuReportesResumenDeMovimientos); MenuReportes.add(jSeparator8); MenuReportesPronosticoDePagos.setText("Pronostico de pagos"); MenuReportes.add(MenuReportesPronosticoDePagos); MenuReportesAntiguedadDeSaldos.setText("Antiguedad de saldos"); MenuReportes.add(MenuReportesAntiguedadDeSaldos); MenuReportesAutorizacionDeCheques.setText("Autorizacion de cheques"); MenuReportes.add(MenuReportesAutorizacionDeCheques); MenuReportesEmisionDeDocumentos.setText("Emision de documentos"); MenuReportes.add(MenuReportesEmisionDeDocumentos); Menuppal.add(MenuReportes); MenuHerramientas.setText("Herramientas"); MenuHerramientasActualizacionDeSaldos.setText("Actualizacion de saldos"); MenuHerramientas.add(MenuHerramientasActualizacionDeSaldos); MenuHerramientasGeneracionDeChequesParaPago.setText("Generacion de Cheques para pago"); MenuHerramientas.add(MenuHerramientasGeneracionDeChequesParaPago); MenuHerramientasPagoAProveedores.setText("Pago a proveedores"); MenuHerramientas.add(MenuHerramientasPagoAProveedores); Menuppal.add(MenuHerramientas); setJMenuBar(Menuppal); setBounds(0, 0, 600, 500); } // GEN-END:initComponents