View Javadoc

1   package org.opensync.engine.admin.gui;
2   
3   import javax.swing.*;
4   import java.awt.*;
5   
6   /***
7    *
8    * @version	1.0
9    * @author	SOFTMED
10   *
11   */
12  
13  public class MessageIFrm extends OpenSyncIFrm {
14    JTextArea textArea = new JTextArea();
15    JScrollPane scrollPanel = new JScrollPane();
16  
17    /***
18     * @param	title
19     * @param	msg
20     * @param	width
21     * @param	height
22     */
23    public MessageIFrm(String title,String msg,int width,int height) {
24      super(title,width,height);
25      textArea.setText(msg);
26      scrollPanel.setAutoscrolls(true);
27      scrollPanel.getViewport().add(textArea,null);
28      getContentPane().setLayout(new BorderLayout());
29      getContentPane().add(scrollPanel,BorderLayout.CENTER);
30    }
31  }