Permalink
Cannot retrieve contributors at this time
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?
2015JAT/JAT/src/jat/application/missionPlan/MissionPlanConsole.java
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
43 lines (29 sloc)
1.09 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() { | |
} | |
} |