ArrayList « JTextArea « Java Swing Q&A





1. Why does this attempt to output an arrayList object to a JtextArea not work?    stackoverflow.com

ArrayList list_of_employees = new ArrayList();
@Action
public void reportAllEmployeesClicked(java.awt.event.ActionEvent evt)
{
    this.outputText.setText("");
    int i=0;
    //JOptionPane.showMessageDialog(null,"test Employee list print");
    ListIterator list_ir = list_of_employees.listIterator(); ...

2. Text File to ArrayList for JTextArea?    coderanch.com

I'm trying to display some text in a JTextArea I have set up in a simple GUI. Easy right? That's what I thought, but I'm clearly not that advanced at Java. The hook is the information I want to display in the JTextArea is in a text file (file.txt). Right now I have a main class and a class called TextArea ...