001 // GraphLab Project: http://graphlab.sharif.edu 002 // Copyright (C) 2008 Mathematical Science Department of Sharif University of Technology 003 // Distributed under the terms of the GNU General Public License (GPL): http://www.gnu.org/licenses/ 004 005 package graphlab.samples.ui.texteditor.myplugin.components; 006 007 import graphlab.platform.core.BlackBoard; 008 import graphlab.ui.components.GComponentInterface; 009 010 import javax.swing.*; 011 import javax.swing.border.LineBorder; 012 import java.awt.*; 013 014 public class TextEditorComponent implements GComponentInterface { 015 public Component getComponent(BlackBoard b) { 016 JTextArea ed = new JTextArea(); 017 ed.setBorder(new LineBorder(Color.white, 10)); 018 return new JScrollPane(ed); 019 } 020 }