Package com.rakaiz.hijri.ui

Examples of com.rakaiz.hijri.ui.HijriDateTextField


      public void actionPerformed(ActionEvent e) {
        doRdbtnReciptActionPerformed(e);
      }
    });

    this.txtDate = new HijriDateTextField();
    GridBagConstraints gbc_txtDate = new GridBagConstraints();
    gbc_txtDate.insets = new Insets(0, 0, 5, 5);
    gbc_txtDate.gridx = 1;
    gbc_txtDate.gridy = 3;
    this.contentsPanel.add(this.txtDate, gbc_txtDate);
    this.rdbtnRecipt.setSelected(true);
    buttonGroup.add(this.rdbtnRecipt);
    GridBagConstraints gbc_rdbtnRecipt = new GridBagConstraints();
    gbc_rdbtnRecipt.insets = new Insets(0, 0, 5, 5);
    gbc_rdbtnRecipt.gridx = 1;
    gbc_rdbtnRecipt.gridy = 4;
    this.contentsPanel.add(this.rdbtnRecipt, gbc_rdbtnRecipt);

    this.rdbtnPay = new JRadioButton("Pay");
    this.rdbtnPay.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        doRdbtnPayActionPerformed(e);
      }
    });
    buttonGroup.add(this.rdbtnPay);
    GridBagConstraints gbc_rdbtnPay = new GridBagConstraints();
    gbc_rdbtnPay.anchor = GridBagConstraints.LINE_START;
    gbc_rdbtnPay.insets = new Insets(0, 0, 5, 5);
    gbc_rdbtnPay.gridx = 2;
    gbc_rdbtnPay.gridy = 4;
    this.contentsPanel.add(this.rdbtnPay, gbc_rdbtnPay);

    this.lblAmount = new JLabel("Amount");
    GridBagConstraints gbc_lblAmount = new GridBagConstraints();
    gbc_lblAmount.insets = new Insets(0, 0, 5, 5);
    gbc_lblAmount.gridx = 0;
    gbc_lblAmount.gridy = 5;
    this.contentsPanel.add(this.lblAmount, gbc_lblAmount);

    this.txtAmount = new JFormattedTextField(DecimalFormat.getInstance());
    this.txtAmount.addFocusListener(new FocusAdapter() {
      @Override
      public void focusLost(FocusEvent e) {
        doTxtAmountFocusLost(e);
      }
    });
    GridBagConstraints gbc_txtAmount = new GridBagConstraints();
    gbc_txtAmount.anchor = GridBagConstraints.LINE_START;
    gbc_txtAmount.gridwidth = 2;
    gbc_txtAmount.insets = new Insets(0, 0, 5, 5);
    gbc_txtAmount.gridx = 1;
    gbc_txtAmount.gridy = 5;
    this.contentsPanel.add(this.txtAmount, gbc_txtAmount);
    this.txtAmount.setColumns(10);

    this.lblAmountWords = new JLabel("Amount Words");
    GridBagConstraints gbc_lblAmountWords = new GridBagConstraints();
    gbc_lblAmountWords.anchor = GridBagConstraints.EAST;
    gbc_lblAmountWords.insets = new Insets(0, 0, 5, 5);
    gbc_lblAmountWords.gridx = 0;
    gbc_lblAmountWords.gridy = 6;
    this.contentsPanel.add(this.lblAmountWords, gbc_lblAmountWords);

    this.txtAmountWords = new JTextField();
    this.txtAmountWords.setEditable(false);
    GridBagConstraints gbc_txtAmountWords = new GridBagConstraints();
    gbc_txtAmountWords.gridwidth = 3;
    gbc_txtAmountWords.insets = new Insets(0, 0, 5, 0);
    gbc_txtAmountWords.fill = GridBagConstraints.HORIZONTAL;
    gbc_txtAmountWords.gridx = 1;
    gbc_txtAmountWords.gridy = 6;
    this.contentsPanel.add(this.txtAmountWords, gbc_txtAmountWords);
    this.txtAmountWords.setColumns(40);

    this.lblPaymentType = new JLabel("Payment Type");
    GridBagConstraints gbc_lblPaymentType = new GridBagConstraints();
    gbc_lblPaymentType.anchor = GridBagConstraints.EAST;
    gbc_lblPaymentType.insets = new Insets(0, 0, 5, 5);
    gbc_lblPaymentType.gridx = 0;
    gbc_lblPaymentType.gridy = 7;
    this.contentsPanel.add(this.lblPaymentType, gbc_lblPaymentType);

    this.cbPaymentType = new JComboBox();
    this.cbPaymentType.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent arg0) {
        doCbPaymentTypeActionPerformed(arg0);
      }
    });
    this.cbPaymentType.setModel(new DefaultComboBoxModel(new String[] {
        "CASH", "BANK TRANSFERE", "CHEQUE", "SPAN", "VISA",
        "MASTER CARD" }));
    GridBagConstraints gbc_cbPaymentType = new GridBagConstraints();
    gbc_cbPaymentType.insets = new Insets(0, 0, 5, 5);
    gbc_cbPaymentType.fill = GridBagConstraints.HORIZONTAL;
    gbc_cbPaymentType.gridx = 1;
    gbc_cbPaymentType.gridy = 7;
    this.contentsPanel.add(this.cbPaymentType, gbc_cbPaymentType);

    this.lblAccountNo = new JLabel("Account No");
    GridBagConstraints gbc_lblAccountNo = new GridBagConstraints();
    gbc_lblAccountNo.anchor = GridBagConstraints.EAST;
    gbc_lblAccountNo.insets = new Insets(0, 0, 5, 5);
    gbc_lblAccountNo.gridx = 2;
    gbc_lblAccountNo.gridy = 7;
    this.contentsPanel.add(this.lblAccountNo, gbc_lblAccountNo);

    this.cbAccountNo = new JComboBox();
    this.cbAccountNo.setEnabled(false);
    GridBagConstraints gbc_cbAccountNo = new GridBagConstraints();
    gbc_cbAccountNo.insets = new Insets(0, 0, 5, 0);
    gbc_cbAccountNo.fill = GridBagConstraints.HORIZONTAL;
    gbc_cbAccountNo.gridx = 3;
    gbc_cbAccountNo.gridy = 7;
    this.contentsPanel.add(this.cbAccountNo, gbc_cbAccountNo);

    this.lblBank = new JLabel("Bank");
    GridBagConstraints gbc_lblBank = new GridBagConstraints();
    gbc_lblBank.anchor = GridBagConstraints.EAST;
    gbc_lblBank.insets = new Insets(0, 0, 5, 5);
    gbc_lblBank.gridx = 0;
    gbc_lblBank.gridy = 8;
    this.contentsPanel.add(this.lblBank, gbc_lblBank);

    this.cbBank = new JComboBox();
    this.cbBank.setEnabled(false);
    GridBagConstraints gbc_cbBank = new GridBagConstraints();
    gbc_cbBank.insets = new Insets(0, 0, 5, 5);
    gbc_cbBank.fill = GridBagConstraints.HORIZONTAL;
    gbc_cbBank.gridx = 1;
    gbc_cbBank.gridy = 8;
    this.contentsPanel.add(this.cbBank, gbc_cbBank);

    this.lblTransfereDate = new JLabel("Transfere Date");
    GridBagConstraints gbc_lblTransfereDate = new GridBagConstraints();
    gbc_lblTransfereDate.anchor = GridBagConstraints.EAST;
    gbc_lblTransfereDate.insets = new Insets(0, 0, 5, 5);
    gbc_lblTransfereDate.gridx = 0;
    gbc_lblTransfereDate.gridy = 9;
    this.contentsPanel.add(this.lblTransfereDate, gbc_lblTransfereDate);

    this.txtTransfereDate = new HijriDateTextField();
    this.txtTransfereDate.setEnabled(false);
    GridBagConstraints gbc_txtTransfereDate = new GridBagConstraints();
    gbc_txtTransfereDate.insets = new Insets(0, 0, 5, 5);
    gbc_txtTransfereDate.fill = GridBagConstraints.HORIZONTAL;
    gbc_txtTransfereDate.gridx = 1;
    gbc_txtTransfereDate.gridy = 9;
    this.contentsPanel.add(this.txtTransfereDate, gbc_txtTransfereDate);

    this.lblTransfereNo = new JLabel("Transfere No");
    GridBagConstraints gbc_lblTransfereNo = new GridBagConstraints();
    gbc_lblTransfereNo.anchor = GridBagConstraints.EAST;
    gbc_lblTransfereNo.insets = new Insets(0, 0, 5, 5);
    gbc_lblTransfereNo.gridx = 2;
    gbc_lblTransfereNo.gridy = 9;
    this.contentsPanel.add(this.lblTransfereNo, gbc_lblTransfereNo);

    this.txtTransfereNo = new JTextField();
    this.txtTransfereNo.setEditable(false);
    GridBagConstraints gbc_txtTransfereNo = new GridBagConstraints();
    gbc_txtTransfereNo.insets = new Insets(0, 0, 5, 0);
    gbc_txtTransfereNo.fill = GridBagConstraints.HORIZONTAL;
    gbc_txtTransfereNo.gridx = 3;
    gbc_txtTransfereNo.gridy = 9;
    this.contentsPanel.add(this.txtTransfereNo, gbc_txtTransfereNo);
    this.txtTransfereNo.setColumns(10);

    this.lblCh = new JLabel("Cheque No");
    GridBagConstraints gbc_lblCh = new GridBagConstraints();
    gbc_lblCh.anchor = GridBagConstraints.EAST;
    gbc_lblCh.insets = new Insets(0, 0, 5, 5);
    gbc_lblCh.gridx = 0;
    gbc_lblCh.gridy = 10;
    this.contentsPanel.add(this.lblCh, gbc_lblCh);

    this.txtChequeNo = new JTextField();
    this.txtChequeNo.setEditable(false);
    GridBagConstraints gbc_txtChequeNo = new GridBagConstraints();
    gbc_txtChequeNo.insets = new Insets(0, 0, 5, 5);
    gbc_txtChequeNo.fill = GridBagConstraints.HORIZONTAL;
    gbc_txtChequeNo.gridx = 1;
    gbc_txtChequeNo.gridy = 10;
    this.contentsPanel.add(this.txtChequeNo, gbc_txtChequeNo);
    this.txtChequeNo.setColumns(10);

    this.lblChequeDate = new JLabel("Cheque Date");
    GridBagConstraints gbc_lblChequeDate = new GridBagConstraints();
    gbc_lblChequeDate.anchor = GridBagConstraints.EAST;
    gbc_lblChequeDate.insets = new Insets(0, 0, 5, 5);
    gbc_lblChequeDate.gridx = 0;
    gbc_lblChequeDate.gridy = 11;
    this.contentsPanel.add(this.lblChequeDate, gbc_lblChequeDate);

    this.txtChequeDate = new HijriDateTextField();
    this.txtChequeDate.setEnabled(false);
    GridBagConstraints gbc_txtChequeDate = new GridBagConstraints();
    gbc_txtChequeDate.insets = new Insets(0, 0, 5, 5);
    gbc_txtChequeDate.fill = GridBagConstraints.HORIZONTAL;
    gbc_txtChequeDate.gridx = 1;
    gbc_txtChequeDate.gridy = 11;
    this.contentsPanel.add(this.txtChequeDate, gbc_txtChequeDate);

    this.lblChequeWithdrowDate = new JLabel("Cheque Withdrow Date");
    GridBagConstraints gbc_lblChequeWithdrowDate = new GridBagConstraints();
    gbc_lblChequeWithdrowDate.anchor = GridBagConstraints.EAST;
    gbc_lblChequeWithdrowDate.insets = new Insets(0, 0, 5, 5);
    gbc_lblChequeWithdrowDate.gridx = 2;
    gbc_lblChequeWithdrowDate.gridy = 11;
    this.contentsPanel.add(this.lblChequeWithdrowDate,
        gbc_lblChequeWithdrowDate);

    this.txtChequeWithdrowDate = new HijriDateTextField();
    this.txtChequeWithdrowDate.setEnabled(false);
    GridBagConstraints gbc_txtChequeWithdrowDate = new GridBagConstraints();
    gbc_txtChequeWithdrowDate.insets = new Insets(0, 0, 5, 0);
    gbc_txtChequeWithdrowDate.fill = GridBagConstraints.HORIZONTAL;
    gbc_txtChequeWithdrowDate.gridx = 3;
View Full Code Here


    this.lblFrom = new JLabel("From");
    this.lblFrom.setName("lblFrom");
    this.contentsPanel.add(this.lblFrom, "cell 0 3,alignx center,aligny center");

    this.dateFrom = new HijriDateTextField();
    this.dateFrom.setName("dateFrom");
    this.contentsPanel.add(this.dateFrom, "cell 1 3,alignx center,aligny center");

    this.lblDuration = new JLabel("Duration");
    this.lblDuration.setName("lblDuration");
    this.contentsPanel.add(this.lblDuration, "cell 2 3,alignx right,aligny center");

    this.spinnerDuration = new JSpinner();
    this.spinnerDuration.addChangeListener(new ChangeListener() {
      public void stateChanged(final ChangeEvent e) {
        doSpinnerDurationStateChanged(e);
      }
    });
    this.spinnerDuration.setModel(new SpinnerNumberModel(1, 1, 365, 1));
    this.spinnerDuration.setName("spinnerDuration");
    this.contentsPanel.add(this.spinnerDuration, "cell 3 3,alignx center,aligny center");

    this.lblTo = new JLabel("To");
    this.lblTo.setName("lblTo");
    this.contentsPanel.add(this.lblTo, "cell 0 4,alignx center,aligny center");
    this.dateTo = new HijriDateTextField();
    this.dateTo.addActionListner(new ActionListener() {
     
      @Override
      public void actionPerformed(ActionEvent e) {
        doDateToActionPerformed();
View Full Code Here

    getFormPanel().add(this.cbPayment, "cell 1 3");
   
    this.lblPayperiod = new JLabel("Payperiod From");
    getFormPanel().add(this.lblPayperiod, "cell 0 4");
   
    this.txtFrom = new HijriDateTextField();
    getFormPanel().add(this.txtFrom, "cell 1 4");
   
    this.lblTo = new JLabel("To");
    getFormPanel().add(this.lblTo, "cell 2 4");
   
    this.hijriDateTextField = new HijriDateTextField();
    getFormPanel().add(this.hijriDateTextField, "cell 3 4");

    this.lblAmount = new JLabel("Amount");
    getFormPanel().add(this.lblAmount, "cell 0 5,aligny center");
View Full Code Here

    final JLabel lblGovIdIssue = new JLabel("Issue Date");
    lblGovIdIssue.setName("lblGovIdIssue");
    contentsPanel.add(lblGovIdIssue, "cell 4 10,alignx left,aligny center");

    this.txtGovIdIssue = new HijriDateTextField();
    this.txtGovIdIssue.setName("txtGovIdIssue");
    contentsPanel.add(this.txtGovIdIssue,
        "cell 5 10,alignx left,aligny center");

    final JLabel lblGovIdExpire = new JLabel("Expire Date");
View Full Code Here

   *
   */

  protected HijriDateTextField getTxtGovIdExpire() {
    if (txtGovIdExpire == null) {
      txtGovIdExpire = new HijriDateTextField();
      txtGovIdExpire.setName("txtGovIdExpire");
    }
    return txtGovIdExpire;
  }
View Full Code Here

    return lblPassportIssueDate;
  }

  protected HijriDateTextField getTxtPassportIssueDate() {
    if (txtPassportIssueDate == null) {
      txtPassportIssueDate = new HijriDateTextField();
      txtPassportIssueDate.setName("txtPassportIssueDate");
    }
    return txtPassportIssueDate;
  }
View Full Code Here

    return lblPassportExpireDate;
  }

  protected HijriDateTextField getTxtPassportExpireDate() {
    if (txtPassportExpireDate == null) {
      txtPassportExpireDate = new HijriDateTextField();
      txtPassportExpireDate.setName("txtPassportExpireDate");
    }
    return txtPassportExpireDate;
  }
View Full Code Here

    return lblBirthDate;
  }

  private HijriDateTextField getTxtBirthDate() {
    if (txtBirthDate == null) {
      txtBirthDate = new HijriDateTextField();
    }
    return txtBirthDate;
  }
View Full Code Here

    gbc_lblPayDate.insets = new Insets(0, 0, 5, 5);
    gbc_lblPayDate.gridx = 0;
    gbc_lblPayDate.gridy = 4;
    getFormPanel().add(this.lblPayDate, gbc_lblPayDate);

    this.hdPayDate = new HijriDateTextField();
    GridBagConstraints gbc_hdPayDate = new GridBagConstraints();
    gbc_hdPayDate.anchor = GridBagConstraints.LINE_START;
    gbc_hdPayDate.insets = new Insets(0, 0, 5, 5);
    gbc_hdPayDate.gridx = 1;
    gbc_hdPayDate.gridy = 4;
    getFormPanel().add(this.hdPayDate, gbc_hdPayDate);

    this.lblPayType = new JLabel("Pay Type");
    GridBagConstraints gbc_lblPayType = new GridBagConstraints();
    gbc_lblPayType.insets = new Insets(0, 0, 5, 5);
    gbc_lblPayType.gridx = 2;
    gbc_lblPayType.gridy = 4;
    getFormPanel().add(this.lblPayType, gbc_lblPayType);

    this.cbPayType = new JComboBox();
    GridBagConstraints gbc_cbPayType = new GridBagConstraints();
    gbc_cbPayType.anchor = GridBagConstraints.LINE_START;
    gbc_cbPayType.insets = new Insets(0, 0, 5, 5);
    gbc_cbPayType.gridx = 3;
    gbc_cbPayType.gridy = 4;
    getFormPanel().add(this.cbPayType, gbc_cbPayType);

    this.lblPaymentMethod = new JLabel("Payment Method");
    GridBagConstraints gbc_lblPaymentMethod = new GridBagConstraints();
    gbc_lblPaymentMethod.insets = new Insets(0, 0, 5, 5);
    gbc_lblPaymentMethod.gridx = 0;
    gbc_lblPaymentMethod.gridy = 5;
    getFormPanel().add(this.lblPaymentMethod, gbc_lblPaymentMethod);

    this.cbPaymentMethod = new JComboBox();
    this.cbPaymentMethod.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        doCbPaymentMethodActionPerformed(e);
      }
    });
    GridBagConstraints gbc_cbPaymentMethod = new GridBagConstraints();
    gbc_cbPaymentMethod.anchor = GridBagConstraints.LINE_START;
    gbc_cbPaymentMethod.insets = new Insets(0, 0, 5, 5);
    gbc_cbPaymentMethod.gridx = 1;
    gbc_cbPaymentMethod.gridy = 5;
    getFormPanel().add(this.cbPaymentMethod, gbc_cbPaymentMethod);

    this.lblBank = new JLabel("Bank");
    GridBagConstraints gbc_lblBank = new GridBagConstraints();
    gbc_lblBank.insets = new Insets(0, 0, 5, 5);
    gbc_lblBank.gridx = 2;
    gbc_lblBank.gridy = 5;
    getFormPanel().add(this.lblBank, gbc_lblBank);

    this.cbBank = new JComboBox();
    this.cbBank.setEnabled(false);
    GridBagConstraints gbc_cbBank = new GridBagConstraints();
    gbc_cbBank.anchor = GridBagConstraints.LINE_START;
    gbc_cbBank.insets = new Insets(0, 0, 5, 5);
    gbc_cbBank.gridx = 3;
    gbc_cbBank.gridy = 5;
    getFormPanel().add(this.cbBank, gbc_cbBank);

    this.lblChequeNo = new JLabel("Cheque No");
    GridBagConstraints gbc_lblChequeNo = new GridBagConstraints();
    gbc_lblChequeNo.insets = new Insets(0, 0, 5, 5);
    gbc_lblChequeNo.gridx = 0;
    gbc_lblChequeNo.gridy = 6;
    getFormPanel().add(this.lblChequeNo, gbc_lblChequeNo);

    this.txtChequeNo = new JTextField();
    this.txtChequeNo.setEditable(false);
    GridBagConstraints gbc_txtChequeNo = new GridBagConstraints();
    gbc_txtChequeNo.anchor = GridBagConstraints.LINE_START;
    gbc_txtChequeNo.insets = new Insets(0, 0, 5, 5);
    gbc_txtChequeNo.gridx = 1;
    gbc_txtChequeNo.gridy = 6;
    getFormPanel().add(this.txtChequeNo, gbc_txtChequeNo);
    this.txtChequeNo.setColumns(10);

    this.lblChequeDate = new JLabel("Cheque Date");
    GridBagConstraints gbc_lblChequeDate = new GridBagConstraints();
    gbc_lblChequeDate.insets = new Insets(0, 0, 5, 5);
    gbc_lblChequeDate.gridx = 2;
    gbc_lblChequeDate.gridy = 6;
    getFormPanel().add(this.lblChequeDate, gbc_lblChequeDate);

    this.hdChequDate = new HijriDateTextField();
    this.hdChequDate.setEnabled(false);
    GridBagConstraints gbc_hdChequDate = new GridBagConstraints();
    gbc_hdChequDate.insets = new Insets(0, 0, 5, 5);
    gbc_hdChequDate.gridx = 3;
    gbc_hdChequDate.gridy = 6;
    getFormPanel().add(this.hdChequDate, gbc_hdChequDate);

    this.lblChequeWithdrowDate = new JLabel("Withdrow Date");
    GridBagConstraints gbc_lblChequeWithdrowDate = new GridBagConstraints();
    gbc_lblChequeWithdrowDate.insets = new Insets(0, 0, 5, 5);
    gbc_lblChequeWithdrowDate.gridx = 4;
    gbc_lblChequeWithdrowDate.gridy = 6;
    getFormPanel().add(this.lblChequeWithdrowDate,
        gbc_lblChequeWithdrowDate);

    this.hdWithdrowDate = new HijriDateTextField();
    this.hdWithdrowDate.setEnabled(false);
    GridBagConstraints gbc_hdWithdrowDate = new GridBagConstraints();
    gbc_hdWithdrowDate.insets = new Insets(0, 0, 5, 0);
    gbc_hdWithdrowDate.gridx = 5;
    gbc_hdWithdrowDate.gridy = 6;
View Full Code Here

    this.txtEmpName.setColumns(30);
   
    this.lblFromDate = new JLabel("From Date");
    getMasterPanel().add(this.lblFromDate, "cell 0 1");
   
    this.txtFromDate = new HijriDateTextField();
    getMasterPanel().add(this.txtFromDate, "cell 1 1");
   
    this.lblToDate = new JLabel("to Date");
    getMasterPanel().add(this.lblToDate, "cell 2 1");
   
    this.txtToDate = new HijriDateTextField();
    getMasterPanel().add(this.txtToDate, "cell 3 1");
  }
View Full Code Here

TOP

Related Classes of com.rakaiz.hijri.ui.HijriDateTextField

Copyright © 2018 www.massapicom. 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.