By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,469 Members | 1,885 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,469 IT Pros & Developers. It's quick & easy.

java help

P: n/a
the code i have done retreives teh text from a file and displays it in the
system.out.println, just wondering if anyone could help me change it so that
it displays with a java gui interface, say in a JFrame or JTextArea??

Open.addActionListener(new ActionListener()
public void actionPerformed(ActionEvent e)

FileReader file = new FileReader("IP Information.txt");
BufferedReader buffer = new BufferedReader(file);
String textline = null;
while((textline = buffer.readLine()) !=null)

catch ( IOException f ) { System.out.println(f); }

Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.