Re: Using JTextArea as a log screen

2003-02-26 Thread Rainer Öhman
Greg, thanks for the in depth answer. It really got me going!   Best,   - Rainer - Original Message - From: Greg Hamilton To: Rainer Öhman Cc: [EMAIL PROTECTED] Sent: Thursday, February 27, 2003 1:42 AM Subject: Re: Using JTextArea as a log screen The class

Re: Using JTextArea as a log screen

2003-02-26 Thread Greg Hamilton
The class which represent the model must extend Observable and implement the setChanged method. public class Model extends Observable { /* Model implementation stuff goes here. */ // Notify observer classes that the model has changed. public void updateView() { setChanged(); notifyObservers((O

Using JTextArea as a log screen

2003-02-26 Thread Rainer Öhman
Hi!   Following the MVC pattern, I'm trying to separate the swing gui from the data.   In the gui application I'm writing (moving users between LDAP trees), I would like to redirect the output produced by the class reading from LDAP to a JTextArea in the swing class - much like redirecting