Hello,
i've written some code in my webapp but i've got a problem with the ActionListener of the jTextfields components? here is some of my code:
//method fo awbnumber
private javax.swing.JTextField getAwbnumber() {
if(awbnumber == null) {
awbnumber = new javax.swing.JTextField();
awbnumber.setPreferredSize(new java.awt.Dimension(100,25));
awbnumber.setColumns(6);
awbnumber.addActionListener(this);
}
return awbnumber;
}
//part of the actionPerformed method
public void actionPerformed(ActionEvent e)
{
if (e.getSource() == awbnumber)
{
if (awbnumber.getText()!=null)
if(awbnumber.getText().compareTo("")!=0)
{
awbObj.setAwbnumber(awbnumber.getText());
}
else
awbObj.resetAwbnumber();
}
....
if someone can find the problem i will appreciate it very much
the code doesn't work... never calls the actionPerformed() method...
10x ahead,
netanel
i've written some code in my webapp but i've got a problem with the ActionListener of the jTextfields components? here is some of my code:
//method fo awbnumber
private javax.swing.JTextField getAwbnumber() {
if(awbnumber == null) {
awbnumber = new javax.swing.JTextField();
awbnumber.setPreferredSize(new java.awt.Dimension(100,25));
awbnumber.setColumns(6);
awbnumber.addActionListener(this);
}
return awbnumber;
}
//part of the actionPerformed method
public void actionPerformed(ActionEvent e)
{
if (e.getSource() == awbnumber)
{
if (awbnumber.getText()!=null)
if(awbnumber.getText().compareTo("")!=0)
{
awbObj.setAwbnumber(awbnumber.getText());
}
else
awbObj.resetAwbnumber();
}
....
if someone can find the problem i will appreciate it very much

the code doesn't work... never calls the actionPerformed() method...
10x ahead,
netanel