KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sape > carbon > services > console > MBeanProfilePanel


1 package org.sape.carbon.services.console;
2
3 import java.awt.Component JavaDoc;
4
5 /**
6  *
7  * @author Greg Hinkle
8  */

9 public class MBeanProfilePanel extends javax.swing.JPanel JavaDoc {
10     
11     /** Creates new form MBeanProfilePanel */
12     public MBeanProfilePanel() {
13         initComponents();
14     }
15     
16     public void setDescription(String JavaDoc desc) {
17         this.description.setText(desc);
18     }
19     
20     public void addTab(Component JavaDoc component, String JavaDoc name) {
21         this.profileTabs.add(component, name);
22     }
23     
24     /** This method is called from within the constructor to
25      * initialize the form.
26      * WARNING: Do NOT modify this code. The content of this method is
27      * always regenerated by the Form Editor.
28      */

29     private void initComponents() {//GEN-BEGIN:initComponents
30
jPanel1 = new javax.swing.JPanel JavaDoc();
31         description = new javax.swing.JTextArea JavaDoc();
32         jPanel2 = new javax.swing.JPanel JavaDoc();
33         profileTabs = new javax.swing.JTabbedPane JavaDoc();
34
35         setLayout(new java.awt.BorderLayout JavaDoc());
36
37         jPanel1.setLayout(new java.awt.BorderLayout JavaDoc());
38
39         description.setBackground(new java.awt.Color JavaDoc(204, 204, 204));
40         description.setText("description");
41         jPanel1.add(description, java.awt.BorderLayout.CENTER);
42
43         add(jPanel1, java.awt.BorderLayout.NORTH);
44
45         jPanel2.setLayout(new java.awt.BorderLayout JavaDoc());
46
47         profileTabs.setTabPlacement(javax.swing.JTabbedPane.BOTTOM);
48         jPanel2.add(profileTabs, java.awt.BorderLayout.CENTER);
49
50         add(jPanel2, java.awt.BorderLayout.CENTER);
51
52     }//GEN-END:initComponents
53

54     
55     // Variables declaration - do not modify//GEN-BEGIN:variables
56
private javax.swing.JTextArea JavaDoc description;
57     private javax.swing.JPanel JavaDoc jPanel2;
58     private javax.swing.JPanel JavaDoc jPanel1;
59     private javax.swing.JTabbedPane JavaDoc profileTabs;
60     // End of variables declaration//GEN-END:variables
61

62 }
63
Popular Tags