package com.util; import java.awt.Point; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyEvent; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.List; import javax.swing.JMenuItem; import javax.swing.JPopupMenu; import javax.swing.JTextField; /** *Custom JText component that has a gentle auto complete menu * @author melsonbati */ public class JAutoCompleteTextField extends JTextField { private JPopupMenu popupMenu; private List<String> myList=new ArrayList<String>(); private File txtFile=null; private ActionListener menuListener = new ActionListener() { ...