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;