Package com.jedics.swing

Source Code of com.jedics.swing.LogPanel

package com.jedics.swing;

import java.awt.GridLayout;
import java.io.IOException;

import javax.swing.JPanel;

import com.jedics.util.LogStream;

@SuppressWarnings("serial")
public class LogPanel extends JPanel {
  LogStream logStream;
 
  LogPanel() {
    super();
   
    setLayout(new GridLayout(1, 1));
   
    try {
      logStream = new LogStream();
      System.setOut(logStream);
      add(logStream.getTextArea());
    } catch(IOException e) {
      System.err.println("Could not create log stream.");
    }   
  }
}
TOP

Related Classes of com.jedics.swing.LogPanel

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.