textField.addFocusListener(this);
localComponents.add(textField);
    public TextFieldList(JTextField textField, boolean haveUpDown) {        super(null, false);        this.useUpDown = haveUpDown;        this.textField = textField;                double [][] dLay = {                { TableLayout.FILL, TableLayout.PREFERRED },                { TableLayout.FILL, 0.5 }        };        this.setLayout(new TableLayout(dLay));                scrollPane = new JScrollPane(getList(), JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);        add(scrollPane, "0, 0, 0, 1, F, F");                JButton btnAdd = new JButton(getAddAction());        btnAdd.setText("");        JButton btnRemove = new JButton(getRemoveAction());        btnRemove.setText("");        /*if (haveUpDown) {            JButton btnUp = new JButton(getUpAction());            btnUp.setText("");            JButton btnDown = new JButton(getDownAction());            btnDown.setText("");                        add(btnAdd, "1, 0");            add(btnRemove, "1, 1");            add(btnUp, "1, 2");            add(btnDown, "1, 3");        } else {*/        add(btnAdd, "1, 0");        add(btnRemove, "1, 1");        //}                textField.addKeyListener(this);        textField.getDocument().addDocumentListener(this);        textField.addFocusListener(this);                list.addKeyListener(this);        list.addListSelectionListener(this);        list.addMouseListener(this);    }