01: package org.sape.carbon.services.console;
02:
03: import java.awt.Component;
04:
05: /**
06: *
07: * @author Greg Hinkle
08: */
09: public class MBeanProfilePanel extends javax.swing.JPanel {
10:
11: /** Creates new form MBeanProfilePanel */
12: public MBeanProfilePanel() {
13: initComponents();
14: }
15:
16: public void setDescription(String desc) {
17: this .description.setText(desc);
18: }
19:
20: public void addTab(Component component, String 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();
31: description = new javax.swing.JTextArea();
32: jPanel2 = new javax.swing.JPanel();
33: profileTabs = new javax.swing.JTabbedPane();
34:
35: setLayout(new java.awt.BorderLayout());
36:
37: jPanel1.setLayout(new java.awt.BorderLayout());
38:
39: description.setBackground(new java.awt.Color(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());
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: // Variables declaration - do not modify//GEN-BEGIN:variables
55: private javax.swing.JTextArea description;
56: private javax.swing.JPanel jPanel2;
57: private javax.swing.JPanel jPanel1;
58: private javax.swing.JTabbedPane profileTabs;
59: // End of variables declaration//GEN-END:variables
60:
61: }
|