1 27 28 package org.objectweb.clif.console.lib.gui; 29 30 import java.awt.GridLayout ; 31 32 import javax.swing.JPanel ; 33 import javax.swing.JScrollPane ; 34 import javax.swing.JTextArea ; 35 36 public class GuiPanelOutput extends JPanel { 37 38 private JTextArea output = new JTextArea (); 39 private JScrollPane scroll = new JScrollPane (output); 40 41 public GuiPanelOutput() { 42 setLayout(new GridLayout (1,1)); 43 add(scroll); 44 } 45 46 public void setOutputText(String arg) { 47 output.append(arg+"\n"); 48 } 49 50 } 51 | Popular Tags |