conversation with computer
<p>I have done an aplication in java and I have used java applet.but it doesn't run with the all 'if conditions' here is the aplication.</p>

<pre><code>import java.awt.*;
import java.awt.event.*;

import javax.swing.*;

public class BashkebisedimGjeografik extends JApplet implements ActionListener {


   JLabel question = new JLabel("Cili eshte kryeqyteti i :");
   JTextField country = new JTextField ("",15);
   JButton button1 = new JButton ("Kthe pergjigje!");
    JLabel result = new JLabel("");


  public void init() 
   {
    Container contentArea = getContentPane();
    FlowLayout layout = new FlowLayout(FlowLayout.LEFT);
    contentArea.setLayout(layout);

    contentArea.add(question);
    contentArea.add(country);
    contentArea.add(button1);
    button1.addActionListener(this);
    contentArea.add(result);
    country.requestFocus();
    setContentPane(contentArea);
   }

   public void actionPerformed(ActionEvent e) 
   {
    Font bigFont = new Font("Arial",Font.ITALIC,24);

    if (country.getText().equalsIgnoreCase("Albania"))

 result.setText("Tirana");

    if (country.getText().equalsIgnoreCase("Turkey"))
    {
     rezultati.setText("Ankara");  
    }
    else 
     result.setText("Try again");



    }

   }
</code></pre>
