Beispiel #1
0
  protected void init() {
    GridBagLayout gb = new GridBagLayout();
    GridBagConstraints gbc = new GridBagConstraints();
    setLayout(gb);

    JLabel subjectDNLbl = makeJLabel("SUBJECTDN");
    CMSAdminUtil.resetGBC(gbc);
    gbc.anchor = gbc.NORTHWEST;
    gbc.weightx = 1.0;
    gbc.insets = new Insets(COMPONENT_SPACE, COMPONENT_SPACE, 0, COMPONENT_SPACE);
    add(subjectDNLbl, gbc);

    JLabel issuerLbl = makeJLabel("ISSUE");
    CMSAdminUtil.resetGBC(gbc);
    gbc.anchor = gbc.NORTHWEST;
    gbc.gridwidth = gbc.REMAINDER;
    gbc.weightx = 1.0;
    gbc.insets = new Insets(COMPONENT_SPACE, COMPONENT_SPACE, 0, COMPONENT_SPACE);
    add(issuerLbl, gbc);

    JTextArea subjectText = new JTextArea(null, null, 0, 0);
    JScrollPane subjectScrollPane =
        new JScrollPane(
            subjectText,
            JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
            JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
    // subjectScrollPane.setPreferredSize(new Dimension(50, 30));
    CMSAdminUtil.resetGBC(gbc);
    gbc.anchor = gbc.NORTHWEST;
    gbc.insets = new Insets(0, COMPONENT_SPACE, COMPONENT_SPACE, 0);
    gbc.weighty = 1.0;
    gbc.weightx = 1.0;
    gbc.fill = gbc.BOTH;
    add(subjectScrollPane, gbc);

    JTextArea issueText = new JTextArea(null, null, 0, 0);
    JScrollPane issueScrollPane =
        new JScrollPane(
            issueText,
            JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
            JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
    // issueScrollPane.setPreferredSize(new Dimension(50, 30));
    CMSAdminUtil.resetGBC(gbc);
    gbc.insets = new Insets(0, COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE);
    gbc.anchor = gbc.NORTHWEST;
    gbc.weighty = 1.0;
    gbc.weightx = 1.0;
    gbc.fill = gbc.BOTH;
    gbc.gridwidth = gbc.REMAINDER;
    add(issueScrollPane, gbc);

    JTextArea infoText = new JTextArea(null, null, 0, 0);
    gbc.insets = new Insets(COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE);
    infoText.setPreferredSize(new Dimension(50, 20));
    gbc.fill = gbc.BOTH;
    gbc.anchor = gbc.NORTHWEST;
    gbc.gridwidth = gbc.REMAINDER;
    gbc.weighty = 1.0;
    add(infoText, gbc);

    mAdd = makeJButton("ADD");
    CMSAdminUtil.resetGBC(gbc);
    gbc.anchor = gbc.NORTHEAST;
    gbc.fill = gbc.NONE;
    gbc.insets = new Insets(COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE);
    gbc.gridwidth = gbc.REMAINDER;
    add(mAdd, gbc);

    super.init();
  }
Beispiel #2
0
 public void callHelp() {
   CMSAdminUtil.help(HELPINDEX);
 }