Package info.clearthought.layout

Examples of info.clearthought.layout.TableLayout


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

   
  }
View Full Code Here


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

    _dialogBuilder = dialogBuilder;

    _label = new JLabel("Directory: ");
View Full Code Here

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

      final Container mainPanel = new JPanel(tbl);
      mainPanel.add(getMarkUpPanel(), "1, 1, 1, 1");
      mainPanel.add(getAnnotationPathPanel(), "1, 3, 1, 3");
View Full Code Here

      final double border = 5;
      final double colsGap = 10;
      final double[][] size = {{border, TableLayoutConstants.PREFERRED, colsGap, TableLayoutConstants.PREFERRED, border}, // Columns
                   {border, TableLayoutConstants.PREFERRED, border}};// Rows
      final TableLayout tbl = new TableLayout(size);
      _annotationPathPanel = new JPanel(tbl);
      _annotationPathPanel.setBorder(BorderFactory.createTitledBorder("FindBugs Annotation class (@SuppressFBWarnings). e.g. edu.umd.cs.findbugs.annotations.SuppressFBWarnings"));

      _annotationPathPanel.add(getAnnotationPathField(), "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);
      _annotationPathPanel.add(buttonPanel, "3, 1, 3, 1");

View Full Code Here

      final double border = 5;
      final double colsGap = 10;
      final double rowsGap = 15;
      final double[][] size = {{border, TableLayoutConstants.PREFERRED, colsGap, TableLayoutConstants.PREFERRED, border}, // Columns
                   {border, TableLayoutConstants.PREFERRED, rowsGap, TableLayoutConstants.PREFERRED, border}};// Rows
      final TableLayout tbl = new TableLayout(size);
      _markUpPanel = new JPanel(tbl) {
        @Override
        public void paint(final Graphics g) {
          super.paint(g);
          final Graphics2D graphics = (Graphics2D) g.create();
View Full Code Here

      final double border = 5;
      final double colsGap = 10;
      final double rowsGap = 5;
      final double[][] size = {{border, TableLayoutConstants.PREFERRED, colsGap, TableLayoutConstants.PREFERRED, border}, // Columns
                   {border, TableLayoutConstants.PREFERRED, 10, TableLayoutConstants.PREFERRED, rowsGap, TableLayoutConstants.PREFERRED, border}};// Rows
      final TableLayout tbl = new TableLayout(size);
      _typeSettingsPanel = new JPanel(tbl);
      _typeSettingsPanel.setBorder(BorderFactory.createTitledBorder("Annotation type settings"));

      _typeSettingsPanel.add(getTextRangeMarkupCheckbox(), "1, 1, 3, 1"); // col ,row, col, row
      _typeSettingsPanel.add(getAnnotationTypeList(), "1, 3, 1, 3");
View Full Code Here

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

      final JPanel fontPanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0));
      _plainBox = new JCheckBox("plain");
      _plainBox.addActionListener(new ActionListener() {
View Full Code Here

    final double border = 5;
    final double colsGap = 2;
    final double[][] size = {{border, TableLayout.PREFERRED, colsGap, TableLayout.PREFERRED, colsGap, TableLayout.FILL, border}, // Columns
                 {border, TableLayout.PREFERRED, border}};// Rows
    final LayoutManager tbl = new TableLayout(size);
    _labelPanel = new JPanel(tbl);
    _labelPanel.add(new JLabel("Preview"), "1, 1, 1, 1");
    _labelPanel.add(_label, "3, 1, 3, 1");

    final AbstractButton closeButton = new JButton(GuiResources.CLOSE_EDITOR_ICON);
View Full Code Here

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

      final Container mainPanel = new JPanel(tbl);
      mainPanel.add(getIncludePanel(), "1, 1, 1, 1");
      mainPanel.add(getExcludePanel(), "1, 3, 1, 3");
      mainPanel.add(getBaseLinePanel(), "1, 5, 1, 5");
View Full Code Here

      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);
      _includePanel = new JPanel(tbl);
      _includePanel.setBorder(BorderFactory.createTitledBorder("Include filter files"));

      final ListModel model = new DefaultListModel();

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

      final Component scrollPane = ScrollPaneFacade.createScrollPane(_includeList, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
      _includePanel.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);
      _includePanel.add(buttonPanel, "3, 1, 3, 1");

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

TOP

Related Classes of info.clearthought.layout.TableLayout

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.