Examples of TableLayout


Examples of info.clearthought.layout.TableLayout

      final double border = 5;
      final double colsGap = 10;
      final double[][] size = {{border, TableLayoutConstants.FILL, colsGap, TableLayoutConstants.PREFERRED, border}, // Columns
                   {border, TableLayoutConstants.FILL, border}};// Rows
      final TableLayout tbl = new TableLayout(size);
      _baselinePanel = new JPanel(tbl);
      _baselinePanel.setBorder(BorderFactory.createTitledBorder("Exclude baseline bugs"));

      final ListModel model = new DefaultListModel();

      _baselineList = ListFacade.createList(model);
      _baselineList.setVisibleRowCount(7);
      _baselineList.getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
      _baselineList.setCellRenderer(new ExpandPathMacroListRenderer(_parent.getProject()));

      final Component scrollPane = ScrollPaneFacade.createScrollPane(_baselineList, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
      _baselinePanel.add(scrollPane, "1, 1, 1, 1"); // col ,row, col, row


      final double rowsGap = 5;
      final double[][] bPanelSize = {{border, TableLayoutConstants.PREFERRED}, // Columns
                       {border, TableLayoutConstants.PREFERRED, rowsGap, TableLayoutConstants.PREFERRED, border}};// Rows
      final TableLayout btbl = new TableLayout(bPanelSize);

      final Container buttonPanel = new JPanel(btbl);
      _baselinePanel.add(buttonPanel, "3, 1, 3, 1");

      final AbstractButton addButton = new JButton();
View Full Code Here

Examples of info.clearthought.layout.TableLayout

      final double border = 5;
      final double rowsGap = 0;
      final double colsGap = 10;
      final double[][] size = {{border, TableLayout.PREFERRED, colsGap, TableLayout.FILL, border}, // Columns
                   {border, TableLayout.PREFERRED, rowsGap, TableLayout.PREFERRED, 10, TableLayout.FILL, 10, TableLayout.PREFERRED, border}};// Rows
      final LayoutManager tbl = new TableLayout(size);

      _mainPanel = new JPanel();
      _mainPanel.setLayout(tbl);
      //panel.setBorder(BorderFactory.createTitledBorder("Inspections"));
      _mainPanel.setBorder(BorderFactory.createTitledBorder("Configuration options"));
View Full Code Here

Examples of info.clearthought.layout.TableLayout

      final double border = 5;
      final double rowsGap = 0;
      final double colsGap = 10;
      final double[][] size = {{border, TableLayout.PREFERRED, colsGap, TableLayout.PREFERRED, border}, // Columns
                   {border, TableLayout.PREFERRED, border}};// Rows
      final LayoutManager tbl = new TableLayout(size);

      _effortPanel = new JPanel(tbl);
      _effortPanel.add(getEffortLabel(), "1, 1, 1, 1");
      _effortPanel.setBorder(null);
      _effortPanel.add( getEffortSlider(), "3, 1, 3, 1, l, t" );
View Full Code Here

Examples of info.clearthought.layout.TableLayout

      final double border = 5;
      final double rowsGap = 5;
      final double colsGap = 10;
      final double[][] size = {{border, TableLayout.PREFERRED, colsGap, TableLayout.PREFERRED}, // Columns
                   {border, TableLayout.PREFERRED, rowsGap, TableLayout.PREFERRED, border}};// Rows
      final TableLayout tbl = new TableLayout(size);

      final JPanel mainPanel = new JPanel(tbl);
      mainPanel.add(getPriorityLabel(), "1, 1, 1, 1");
      final JPanel comp = new JPanel(new FlowLayout(FlowLayout.LEFT));
      comp.add(getPriorityComboBox());
View Full Code Here

Examples of info.clearthought.layout.TableLayout

      final double border = 5;
      final double rowsGap = 5;
      final double colsGap = 10;
      final double[][] size = {{border, TableLayout.FILL, border}, // Columns
                   {border, TableLayout.PREFERRED, rowsGap, TableLayout.PREFERRED, rowsGap, TableLayout.PREFERRED, rowsGap, TableLayout.FILL, 15, 0, border}};// Rows
      final TableLayout tbl = new TableLayout(size);

      final Container mainPanel = new JPanel(tbl);
      mainPanel.add(new JLabel("Disabled detectors will not participate in the analysis."), "1, 1, 1, 1");
      mainPanel.add(new JLabel("'Grayed out' detector will run, however they will not report any result to the UI."), "1, 3, 1, 3");


      final Container checkboxPanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0));
      checkboxPanel.add(getHiddenCheckBox());
      checkboxPanel.add(getEnableAllBox());
      mainPanel.add(checkboxPanel, "1, 5, 1, 5");


      final double[][] size1 = {{TableLayout.FILL}, // Columns
                    {TableLayout.FILL}};// Rows
      final TableLayout tableLayout = new TableLayout(size1);
      final JPanel detectorPanel = new JPanel(tableLayout);
      detectorPanel.add(ScrollPaneFacade.createScrollPane(getDetectorsTable(), JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED), "0, 0, 0, 0");
      //mainPanel.add(detectorPanel, "1, 7, 1, 7");

      final JComponent scrollPane = ScrollPaneFacade.createScrollPane(getTextArea(), JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
View Full Code Here

Examples of info.clearthought.layout.TableLayout

    final double border = 0;
    final double rowsGap = 0;
    final double colsGap = _hGap;
    final double[][] size = {{border, TableLayoutConstants.PREFERRED, colsGap, TableLayoutConstants.PREFERRED, colsGap, TableLayoutConstants.PREFERRED, colsGap, TableLayoutConstants.PREFERRED, border}, // Columns
                 {border, TableLayoutConstants.PREFERRED, border}};// Rows
    final LayoutManager tbl = new TableLayout(size);
    setLayout(tbl);

    //setLayout(new BorderLayout(_hGap, 0));
    _icon = new JLabel();
View Full Code Here

Examples of info.clearthought.layout.TableLayout

  public Component getComponent() {
    if (_component == null) {
      final double border = 5;
      final double[][] size = {{border, TableLayoutConstants.FILL, border}, // Columns
                   {border, TableLayoutConstants.PREFERRED, border}};// Rows
      final TableLayout tbl = new TableLayout(size);

      final JComponent mainPanel = new JPanel(tbl);
      mainPanel.setBorder(BorderFactory.createCompoundBorder(new EmptyBorder(5, 5, 5, 5), BorderFactory.createTitledBorder("Installed Plugins")));
      _component = mainPanel;
      mainPanel.add(getPluginPanel(), "1, 1, 1, 1");
View Full Code Here

Examples of info.clearthought.layout.TableLayout

      final double border = 5;
      final double colsGap = 10;
      final double[][] size = {{border, TableLayoutConstants.PREFERRED, colsGap, TableLayoutConstants.PREFERRED, border}, // Columns
                   {border, TableLayoutConstants.FILL, border}};// Rows
      final TableLayout tbl = new TableLayout(size);
      _pluginsPanel = new JPanel(tbl);

      _pluginComponentPanel = new JPanel();
      _pluginComponentPanel.setLayout(new BoxLayout(_pluginComponentPanel, BoxLayout.Y_AXIS));
      rebuildPluginComponents();

      final Component scrollPane = ScrollPaneFacade.createScrollPane(_pluginComponentPanel, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
      _pluginsPanel.add(scrollPane, "1, 1, 1, 1"); // col ,row, col, row


      final double rowsGap = 5;
      final double[][] bPanelSize = {{border, TableLayoutConstants.PREFERRED}, // Columns
                       {border, TableLayoutConstants.PREFERRED, rowsGap, TableLayoutConstants.PREFERRED, border}};// Rows
      final TableLayout tableLayout = new TableLayout(bPanelSize);

      final Container buttonPanel = new JPanel(tableLayout);
      _pluginsPanel.add(buttonPanel, "3, 1, 3, 1");

      final AbstractButton addButton = new JButton();
View Full Code Here

Examples of info.clearthought.layout.TableLayout

    void init(@Nullable final Project currentProject, final Plugin plugin, final boolean userPlugin) {
      final double border = 5;
      final double[][] size = {{border, TableLayoutConstants.PREFERRED, 5, TableLayoutConstants.FILL, border}, // Columns
                   {border, TableLayoutConstants.PREFERRED, border}};// Rows
      final TableLayout tbl = new TableLayout(size);
      _component = new JPanel(tbl);
      _component.setBorder(new CustomLineBorder(JBColor.GRAY, 0, 0, 1, 0));
      _component.setBackground(PLUGIN_DESCRIPTION_BG_COLOR);

      String text = plugin.getShortDescription();
View Full Code Here

Examples of info.clearthought.layout.TableLayout

      final double border = 5;
      final double rowsGap = 5;
      final double colsGap = 10;
      final double[][] size = {{border, TableLayout.PREFERRED, border}, // Columns
                   {border, TableLayout.PREFERRED, rowsGap, TableLayout.PREFERRED, rowsGap, TableLayout.PREFERRED, rowsGap, TableLayout.PREFERRED, border}};// Rows
      final TableLayout tbl = new TableLayout(size);

      _mainPanel = new JPanel(tbl);
      _mainPanel.add(getExportDirPanel(), "1, 1, 1, 1");
      _mainPanel.add(getFileFormatPanel(), "1, 3, 1, 3");
      _mainPanel.add(getBrowserPanel(), "1, 5, 1, 5");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.