Package com.commander4j.gui

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


    lbl_Limit.setBounds(589, 47, 110, 16);
    desktopPane.add(lbl_Limit);
   
    JButton4j btnLookupInspection = new JButton4j("");
    btnLookupInspection.setIcon(Common.icon_lookup);
    btnLookupInspection.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        JLaunchLookup.dlgAutoExec = true;
        JLaunchLookup.dlgCriteriaDefault = "";
        if (JLaunchLookup.qmInspections())
        {
View Full Code Here


        jButtonExcel.setBounds(470, 275, 115, 30);
        getContentPane().add(jButtonExcel);
      }

      JButton4j button4jRun = new JButton4j(Common.icon_execute);
      button4jRun.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
          int row = jTable1.getSelectedRow();
          if (row >= 0) {

            archID = jTable1.getValueAt(row, 0).toString();
View Full Code Here

          jLabel1.setBounds(256, 11, 129, 21);
          jLabel1.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          JButton4j btnExcel = new JButton4j(Common.icon_XLS);
          btnExcel.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent arg0) {
              export();
            }
          });
          btnExcel.setText(lang.get("btn_Excel"));
View Full Code Here

      public void run() {
        jTextFieldDescription.requestFocus();
        jTextFieldDescription.setCaretPosition(jTextFieldDescription.getText().length());
       
        JButton4j btnSelect = new JButton4j("Background Color");
        btnSelect.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
             decis.setBackground(JColorChooser.showDialog(Common.mainForm, "Change Background",
                 decis.getBackground()));
             jTextFieldDescription.setBackground(decis.getBackground());
             jButtonUpdate.setEnabled(true);
View Full Code Here

    desktopPane.add(btnClose);

    JButton4j btnSearch = new JButton4j(lang.get("btn_Search"));
    btnSearch.setBounds(45, 157, 117, 29);
    btnSearch.setIcon(Common.icon_search);
    btnSearch.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
        populateTable();
      }
View Full Code Here

    lbl_inspection.setHorizontalAlignment(SwingConstants.TRAILING);
    lbl_inspection.setBounds(6, 120, 111, 16);
    desktopPane.add(lbl_inspection);

    JButton4j btnExcel = new JButton4j(lang.get("btn_Excel"));
    btnExcel.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent arg0)
      {
        JExcel export = new JExcel();
        PreparedStatement temp = buildSQL();
View Full Code Here


    scrollPaneResults.setViewportView(table);
   
    JButton4j btnEdit = new JButton4j(lang.get("btn_Edit"));
    btnEdit.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent arg0) {
        editRecord();
      }
    });
    btnEdit.setIcon(Common.icon_edit);
View Full Code Here

              dispose();
            }
          });

          JButton4j btnExcel = new JButton4j(Common.icon_XLS);
          btnExcel.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent arg0)
            {
              excel();
            }
View Full Code Here

    jDesktopPane1.add(jSpinnerLimit);
    jDesktopPane1.add(jScrollPane1);
    jDesktopPane1.add(jStatusText);

    JButton4j jButtonAssign = new JButton4j();
    jButtonAssign.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
        assign();
      }
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

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.