/* * SimpleContentPanel.java * * Created on den 18 september 2001, 12:57 */ package ip1.u7.a; /** * * @author Henirk Johansson, DS(= * @version vt 2001 */ public class SimpleContentPanel extends javax.swing.JPanel implements ContentPanel { /** * Skapar en ny ContentPanel-komponent. * ansvarar för att låta användaren mata in meddelandet. */ public SimpleContentPanel() { initComponents(); } public String getContent() { return content.getText(); } public void clearPanel() { content.setText(""); } public void setContent(String content) { this.content.setText(content); } /** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ private void initComponents() {//GEN-BEGIN:initComponents jScrollPane1 = new javax.swing.JScrollPane(); content = new javax.swing.JTextArea(); setLayout(new java.awt.BorderLayout()); jScrollPane1.setViewportView(content); add(jScrollPane1, java.awt.BorderLayout.CENTER); }//GEN-END:initComponents // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JScrollPane jScrollPane1; private javax.swing.JTextArea content; // End of variables declaration//GEN-END:variables }