Skip to content
Permalink
d5a738a582
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
43 lines (29 sloc) 1.09 KB
package jat.application.missionPlan;
import jat.core.util.messageConsole.MessageConsole;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import javax.swing.JApplet;
import javax.swing.JScrollPane;
import javax.swing.JTextPane;
public class MissionPlanConsole extends JApplet {
private static final long serialVersionUID = -5288937301478318959L;
public void init() {
// Create a text pane.
JTextPane textPane = new JTextPane();
JScrollPane paneScrollPane = new JScrollPane(textPane);
paneScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
paneScrollPane.setPreferredSize(new Dimension(250, 155));
paneScrollPane.setMinimumSize(new Dimension(10, 10));
getContentPane().add(paneScrollPane, BorderLayout.CENTER);
// Redirect stdout and stderr to the text pane
MessageConsole mc = new MessageConsole(textPane);
mc.redirectOut();
mc.redirectErr(Color.RED, null);
mc.setMessageLines(100);
//System.out.println("PathUtilTestConsole init out");
System.out.println("[MissionPlanConsole] ");
}
public void start() {
}
}