View Single Post
  #1 (permalink)  
Old 02-17-2008, 04:26 AM
birdofprey birdofprey is offline
Member
 
Join Date: Feb 2008
Posts: 3
birdofprey is on a distinguished road
implementing a button instead.
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; }
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?
Reply With Quote
Sponsored Links