Package org.apache.jorphan.gui.layout

Examples of org.apache.jorphan.gui.layout.VerticalLayout


  private void init()
  {
    if(displayName)
    {
      this.setLayout(new VerticalLayout(5, VerticalLayout.LEFT, VerticalLayout.TOP));

      // MAIN PANEL
      JPanel mainPanel = new JPanel();
      Border margin = new EmptyBorder(10, 10, 5, 10);
      mainPanel.setBorder(margin);
      mainPanel.setLayout(new VerticalLayout(5, VerticalLayout.LEFT));

      // TITLE
      JLabel panelTitleLabel = new JLabel(JMeterUtils.getResString("database_login_title"));
      Font curFont = panelTitleLabel.getFont();
      int curFontSize = curFont.getSize();
      curFontSize += 4;
      panelTitleLabel.setFont(new Font(curFont.getFontName(), curFont.getStyle(), curFontSize));
      mainPanel.add(panelTitleLabel);

      // NAME
      mainPanel.add(getNamePanel());

      // URL and JDBC PROPS
      JPanel urlJDBCPanel = new JPanel();
      urlJDBCPanel.setLayout(new VerticalLayout(5, VerticalLayout.LEFT));
      urlJDBCPanel.setBorder(BorderFactory.createTitledBorder(JMeterUtils.getResString("database_url_jdbc_props")));

      // URL
      urlJDBCPanel.add(getUrlPanel());

      // DRIVER
      urlJDBCPanel.add(getDriverPanel());

      mainPanel.add(urlJDBCPanel);

      // LOGIN
      loginGui = new LoginConfigGui(false);
      JPanel loginPanel = new JPanel();
      loginPanel.setBorder(BorderFactory.createTitledBorder(JMeterUtils.getResString("login_config")));
      loginPanel.add(loginGui);
      mainPanel.add(loginPanel);

      this.add(mainPanel);
    }
    else
    {
      this.setLayout(new VerticalLayout(5, VerticalLayout.LEFT));

      // URL and JDBC PROPS
      JPanel urlJDBCPanel = new JPanel();
      urlJDBCPanel.setLayout(new VerticalLayout(5, VerticalLayout.LEFT));
      urlJDBCPanel.setBorder(BorderFactory.createTitledBorder(JMeterUtils.getResString("database_url_jdbc_props")));

      // URL
      urlJDBCPanel.add(getUrlPanel());
View Full Code Here


  private void init()
  {
    if(displayName)
    {
      this.setLayout(new VerticalLayout(5, VerticalLayout.LEFT, VerticalLayout.TOP));

      // MAIN PANEL
      JPanel mainPanel = new JPanel();
      Border margin = new EmptyBorder(10, 10, 5, 10);
      mainPanel.setBorder(margin);
      mainPanel.setLayout(new VerticalLayout(5, VerticalLayout.LEFT));

      // TITLE
      JLabel panelTitleLabel = new JLabel(JMeterUtils.getResString("database_sql_query_title"));
      Font curFont = panelTitleLabel.getFont();
      int curFontSize = curFont.getSize();
      curFontSize += 4;
      panelTitleLabel.setFont(new Font(curFont.getFontName(), curFont.getStyle(), curFontSize));
      mainPanel.add(panelTitleLabel);

      // NAME
      mainPanel.add(getNamePanel());

      // SQL
      mainPanel.add(createSqlPanel());

      this.add(mainPanel);
    }
    else
    {
      this.setLayout(new VerticalLayout(5, VerticalLayout.LEFT));
      this.add(createSqlPanel());
    }
  }
View Full Code Here

   * Shows the main authentication panel for this object
   ***************************************/
  public void init()
  {
    // set the layout of the control panel
    this.setLayout(new VerticalLayout(5, VerticalLayout.LEFT));

    authManagerPanel = new JPanel();

    Border margin = new EmptyBorder(10, 10, 5, 10);
    authManagerPanel.setBorder(margin);

    authManagerPanel.setLayout(new VerticalLayout(5, VerticalLayout.LEFT));

    JLabel panelTitleLabel = new JLabel(JMeterUtils.getResString("auth_manager_title"));
    Font curFont = panelTitleLabel.getFont();
    int curFontSize = curFont.getSize();
    curFontSize += 4;
View Full Code Here

  public JPanel createAuthTablePanel()
  {
    Border margin = new EmptyBorder(5, 10, 10, 10);

    JPanel tempPanel = new JPanel();
    tempPanel.setLayout(new VerticalLayout(0, VerticalLayout.CENTER));
    tempPanel.setBorder(new CompoundBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils.getResString("auths_stored")), margin));

    // create the JTable that holds auth per row
    authTable = new JTable(tableModel);
    authTable.setCellSelectionEnabled(true);
View Full Code Here

  private void init()
  {
    if(displayName)
    {
      this.setLayout(new VerticalLayout(5, VerticalLayout.LEFT, VerticalLayout.TOP));

      // MAIN PANEL
      JPanel mainPanel = new JPanel();
      Border margin = new EmptyBorder(10, 10, 5, 10);
      mainPanel.setBorder(margin);
      mainPanel.setLayout(new VerticalLayout(5, VerticalLayout.LEFT));

      // TITLE
      JLabel panelTitleLabel = new JLabel(JMeterUtils.getResString("database_conn_pool_title"));
      Font curFont = panelTitleLabel.getFont();
      int curFontSize = curFont.getSize();
      curFontSize += 4;
      panelTitleLabel.setFont(new Font(curFont.getFontName(), curFont.getStyle(), curFontSize));
      mainPanel.add(panelTitleLabel);

      // NAME
      mainPanel.add(getNamePanel());

      // CONNECTION POOL
      JPanel connPoolPanel = new JPanel();
      connPoolPanel.setLayout(new VerticalLayout(5, VerticalLayout.LEFT));
      connPoolPanel.setBorder(BorderFactory.createTitledBorder(JMeterUtils.getResString("database_conn_pool_props")));

      // NUMBER OF CONNECTIONS
      connPoolPanel.add(createConnPanel());

      // MAX USAGE
      connPoolPanel.add(createMaxUsePanel());

      mainPanel.add(connPoolPanel);

      this.add(mainPanel);
    }
    else
    {
      this.setLayout(new VerticalLayout(5, VerticalLayout.LEFT));

      // CONNECTION POOL
      JPanel connPoolPanel = new JPanel();
      connPoolPanel.setLayout(new VerticalLayout(5, VerticalLayout.LEFT));
      connPoolPanel.setBorder(BorderFactory.createTitledBorder(JMeterUtils.getResString("database_conn_pool_props")));

      // NUMBER OF CONNECTIONS
      connPoolPanel.add(createConnPanel());
View Full Code Here

    }
   
    private void init()
    {
        setLayout(
            new VerticalLayout(5, VerticalLayout.LEFT, VerticalLayout.TOP));
        setBorder(makeBorder());

        add(makeTitlePanel());

        // USER_INPUT
View Full Code Here

     * Inits the GUI.
     */
    private void init()
    {
        setLayout(
            new VerticalLayout(5, VerticalLayout.LEFT, VerticalLayout.TOP));
        setBorder(makeBorder());

        add(makeTitlePanel());
    }
View Full Code Here

     * reuses logic from SOAPSampler, since it is common.
     */
    private void init()
    {
        this.setLayout(
            new VerticalLayout(5, VerticalLayout.LEFT, VerticalLayout.TOP));

        // MAIN PANEL
        JPanel mainPanel = new JPanel();
        Border margin = new EmptyBorder(10, 10, 5, 10);
        mainPanel.setBorder(margin);
        mainPanel.setLayout(new VerticalLayout(5, VerticalLayout.LEFT));

        // TITLE
        JLabel panelTitleLabel = new JLabel(getStaticLabel());
        Font curFont = panelTitleLabel.getFont();
        int curFontSize = curFont.getSize();
View Full Code Here

     * reuses logic from SOAPSampler, since it is common.
     */
    private void init()
    {
        this.setLayout(
            new VerticalLayout(5, VerticalLayout.LEFT, VerticalLayout.TOP));
        wsdlMessage.setFont(plainText);
        wsdlMessage2.setFont(plainText);
        wsdlMessage3.setFont(plainText);
        wsdlMessage4.setFont(plainText);
        wsdlMessage5.setFont(plainText);
        readMessage.setFont(plainText);
        readMessage2.setFont(plainText);
        readMessage3.setFont(plainText);

        // MAIN PANEL
        JPanel mainPanel = new JPanel();
        Border margin = new EmptyBorder(10, 10, 5, 10);
        mainPanel.setBorder(margin);
        mainPanel.setLayout(new VerticalLayout(5, VerticalLayout.LEFT));

        // TITLE
        JLabel panelTitleLabel = new JLabel(getStaticLabel());
        Font curFont = panelTitleLabel.getFont();
        int curFontSize = curFont.getSize();
View Full Code Here

                policies);
        policy.setText(CookieManager.DEFAULT_POLICY);
        setLayout(new BorderLayout());
        setBorder(makeBorder());
        JPanel northPanel = new JPanel();
        northPanel.setLayout(new VerticalLayout(5, VerticalLayout.BOTH));
        northPanel.add(makeTitlePanel());
        JPanel optionsPane = new JPanel();
        optionsPane.setBorder(BorderFactory.createTitledBorder(
                BorderFactory.createEtchedBorder(),
                JMeterUtils.getResString("cookie_options"))); // $NON-NLS-1$
        optionsPane.setLayout(new VerticalLayout(5, VerticalLayout.BOTH));
        optionsPane.add(clearEachIteration);
        JPanel policyTypePane = new JPanel();
        policyTypePane.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0));
        policyTypePane.add(policy);
        policyTypePane.add(GuiUtils.createLabelCombo(
View Full Code Here

TOP

Related Classes of org.apache.jorphan.gui.layout.VerticalLayout

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.