01: /*
02: * Console.java Copyright (c) 2006,07 Swaroop Belur
03: *
04: * This program is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU General Public License
06: * as published by the Free Software Foundation; either version 2
07: * of the License, or (at your option) any later version.
08:
09: * This program is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12: * GNU General Public License for more details.
13:
14: * You should have received a copy of the GNU General Public License
15: * along with this program; if not, write to the Free Software
16: * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17: *
18: */
19: package net.sf.jdec.ui.core;
20:
21: import java.awt.Dimension;
22:
23: import javax.swing.JEditorPane;
24: import javax.swing.JScrollPane;
25:
26: /**
27: *@author swaroop belur
28: */
29: public class Console extends UIObject {
30:
31: private JEditorPane jeditor = null;
32: private JScrollPane scroll = null;
33:
34: public void setDesc(java.lang.String desc) {
35: this .whatAmI = desc;
36: }
37:
38: public Console() {
39: jeditor = new JEditorPane("text/plain", "Jdec Console window");
40: jeditor.setMaximumSize(new Dimension(200, 300));
41: //jeditor.setBackground(Color.LIGHT_GRAY);
42: }
43:
44: public JEditorPane getComponent() {
45: //scroll=new JScrollPane(jeditor);
46: //scroll.setMinimumSize(new Dimension(scroll.getWidth(),scroll.getHeight()+255));
47: return jeditor;
48:
49: }
50: }
|