With a code like this, how would one implement a button to set the data and output it out? instead of the default hitting enter?Code:private JTextField Entry() {
Entry = new JTextField();
Entry.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
middleInitialEntry.setText(TextEntered);
System.out.println(TextEntered);
}
});
return Entry;
}
