1 19 20 package org.netbeans.modules.j2ee.sun.bridge; 21 22 import java.util.ResourceBundle ; 23 24 import org.openide.util.NbBundle; 25 26 31 32 final class CertificatePanel extends javax.swing.JPanel { 33 34 35 public CertificatePanel(String certificate) { 36 initComponents(); 37 initAccessibility(); 38 try { 39 jEditorPane1.setText(certificate); 40 } catch (Exception exc) { 41 System.err.println("Exception: " + exc.getMessage()); exc.printStackTrace(); 44 } 45 } 46 47 private void initAccessibility() { 48 this.getAccessibleContext().setAccessibleName 49 (bundle.getString("ACSN_CertificatePanel")); 50 this.getAccessibleContext().setAccessibleDescription 51 (bundle.getString("ACSD_CertificatePanel")); 52 53 jEditorPane1.getAccessibleContext().setAccessibleName 54 (bundle.getString("ACSN_EditorPane")); 55 jEditorPane1.getAccessibleContext().setAccessibleDescription 56 (bundle.getString("ACSD_EditorPane")); 57 } 58 59 64 private void initComponents() { 66 jScrollPane1 = new javax.swing.JScrollPane (); 67 jEditorPane1 = new javax.swing.JEditorPane (); 68 69 setLayout(new javax.swing.BoxLayout (this, javax.swing.BoxLayout.Y_AXIS)); 70 71 setBorder(javax.swing.BorderFactory.createEmptyBorder(12, 12, 0, 11)); 72 jEditorPane1.setEditable(false); 73 jEditorPane1.setPreferredSize(new java.awt.Dimension (500, 500)); 74 jScrollPane1.setViewportView(jEditorPane1); 75 76 add(jScrollPane1); 77 78 } 79 81 82 private javax.swing.JEditorPane jEditorPane1; 84 private javax.swing.JScrollPane jScrollPane1; 85 87 private static final ResourceBundle bundle = NbBundle.getBundle(CertificatePanel.class); 88 } 89 | Popular Tags |