Пример #1
0
  public GuideCertInstallPane() {
    super();
    setLayout(new GridBagLayout());

    ResourceSet resource = KeyCertUtility.getKeyCertWizardResourceSet();

    setBorder(
        new TitledBorder(
            new CompoundBorder(
                new EtchedBorder(),
                new EmptyBorder(
                    COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE)),
            resource.getString("GuideCertInstallPane", "title")));

    int y = 0;

    GridBagUtil.constrain(
        this,
        new MultilineLabel(resource.getString("GuideCertInstallPane", "explain")),
        0,
        ++y,
        1,
        1,
        1.0,
        0.0,
        GridBagConstraints.NORTH,
        GridBagConstraints.BOTH,
        0,
        0,
        SEPARATED_COMPONENT_SPACE,
        0);

    GridBagUtil.constrain(
        this,
        Box.createVerticalGlue(),
        0,
        ++y,
        1,
        1,
        1.0,
        1.0,
        GridBagConstraints.NORTH,
        GridBagConstraints.BOTH,
        0,
        0,
        0,
        0);

    GridBagUtil.constrain(
        this,
        new JLabel(resource.getString(null, "clickNextToContinue")),
        0,
        ++y,
        1,
        1,
        1.0,
        0.0,
        GridBagConstraints.NORTH,
        GridBagConstraints.BOTH,
        0,
        0,
        0,
        0);
  }