Package com.commander4j.gui

Examples of com.commander4j.gui.JButton4j.addActionListener()


          });
         
          JButton4j btnExcel = new JButton4j(Common.icon_XLS);
          btnExcel.setText(lang.get("btn_Excel"));
          btnExcel.setBounds(380, 132, 125, 30);
          btnExcel.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
              excel();
            }
          });
          jDesktopPane1.add(btnExcel);
View Full Code Here


      });
      list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
      scrollPane.setViewportView(list);

      JButton4j JButtonRefresh = new JButton4j(Common.icon_refresh);
      JButtonRefresh.addActionListener(new ActionListener()
      {
        public void actionPerformed(ActionEvent arg0)
        {
          populateList("Pack");
        }
View Full Code Here

    panelShiftButtons.setBounds(12, 475, 112, 27);
    desktopPane.add(panelShiftButtons);
    panelShiftButtons.setLayout(null);

    JButton4j button4jShiftAdd = new JButton4j(Common.icon_add);
    button4jShiftAdd.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent arg0)
      {
        addShift();
      }
    });
View Full Code Here

    button4jShiftAdd.setFont(Common.font_std);
    button4jShiftAdd.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_SHIFT_ADD"));
    button4jShiftAdd.setMnemonic('0');

    JButton4j button4jShiftDelete = new JButton4j(Common.icon_delete);
    button4jShiftDelete.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent arg0) {
        deleteShift();
      }
    });
    button4jShiftDelete.setBounds(57, 0, 25, 25);
View Full Code Here

    button4jShiftDelete.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_SHIFT_DELETE"));
    button4jShiftDelete.setMnemonic('0');
    button4jShiftDelete.setFont(Common.font_std);

    JButton4j button4jShiftEdit = new JButton4j(Common.icon_edit);
    button4jShiftEdit.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e)
      {
        editShift();
      }
    });
View Full Code Here

    button4jShiftEdit.setFont(Common.font_std);

    JButton4j button4jShiftRefresh = new JButton4j(Common.icon_refresh);
    button4jShiftRefresh.setBounds(85, 0, 25, 25);
    panelShiftButtons.add(button4jShiftRefresh);
    button4jShiftRefresh.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent arg0)
      {
        populateListUserShifts("");
      }
    });
View Full Code Here

    desktopPane.add(btnEdit);
   
    JButton4j btnRefresh = new JButton4j(lang.get("btn_Refresh"));
    btnRefresh.setBounds(619, 92, 117, 29);
    btnRefresh.setIcon(Common.icon_refresh);
    btnRefresh.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        populateTable();
      }
    });
    desktopPane.add(btnRefresh);
View Full Code Here

          jDesktopPane1.add(jButtonClear);
        }
        {
          JButton4j btnLookupInspection = new JButton4j("");
          btnLookupInspection.setIcon(Common.icon_lookup);
          btnLookupInspection.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
              JLaunchLookup.dlgCriteriaDefault = "";
              JLaunchLookup.dlgAutoExec = true;
              if (JLaunchLookup.qmInspections())
              {
View Full Code Here

      });
    //listInspection.setLocation(0, 58);
    scrollPaneInspection.setViewportView(listInspection);
   
    JButton4j btnAdd1 = new JButton4j(lang.get("btn_Add"));
    btnAdd1.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        addInspectionRecord();
      }
    });
    btnAdd1.setIcon(Common.icon_add);
View Full Code Here

    btnAdd1.setBounds(683, 24, 117, 32);
    btnAdd1.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_QM_INSPECTION"));
    panelInspection.add(btnAdd1);
   
    JButton4j btnDelete1 = new JButton4j(lang.get("btn_Delete"));
    btnDelete1.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        deleteInspectionRecord();
      }
    });
    btnDelete1.setBounds(683, 80, 117, 32);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.