I have a JTextField that a user will enter a number.

How is it that I check whether or not the number that they entered is greater than 0?

I am very new to this so sorry if it is a bit obvious to you.

Here is my code

```
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Random;
import javax.swing.*;

public class TaxiFrame extends JFrame implements ActionListener {

      private JLabel L1 = new JLabel("Number of Taxis:");
      private JLabel L2 = new JLabel("Type an integer and press enter");
      private JTextField t1 = new JTextField ("            ");

    public TaxiFrame() {
        super("This is the Frame");
        setSize(500, 300);
        getContentPane().setBackground(Color.CYAN);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setLayout(new BorderLayout(10, 10));

         JPanel p = new JPanel();     

         p.setOpaque(false);
         p.add(L1);
         getContentPane().
         add("South", p);

          p.setOpaque(false);
          p.add(t1);
          getContentPane().
          add("South", p);

          p.setOpaque(false);
          p.add(L2);
          getContentPane().
          add("South", p);

        setVisible(true);

        t1.addActionListener(this);

    }

    public static void main(String[] args) {
        new TaxiFrame();
    }

    public void actionPerformed(ActionEvent e)
    {

        if (e.getSource() == t1)
        {

        }

    }

}

```