Examples of EmptyBorder


Examples of javax.swing.border.EmptyBorder

      tableInfoSplitPane.setOneTouchExpandable(true);

      restoreSplitPaneLocations();

      //BORDER TWEAKING
      tableInfoSplitPane.setBorder(new EmptyBorder(5, 0, 0, 0));
    }
    return tableInfoSplitPane;
  }
View Full Code Here

Examples of javax.swing.border.EmptyBorder

      tablePanel = new JPanel();
      tablePanel.setLayout(new GridBagLayout());
      tablePanel.add(tableScrollPane, gbc);
      //tablePanel.add(getIndexInfoPane(),gbc2);
      tablePanel.add(getjPanelOption(), gbc2);
      tablePanel.setBorder(new EmptyBorder(3, 5, 5, 3));
    }
    return tablePanel;
  }
View Full Code Here

Examples of javax.swing.border.EmptyBorder

            hideInfoIndex(false);
          }
         
        }
      });
      jTabbedPaneExplo_Index.setBorder(new EmptyBorder(3, 5, 5, 3));
     
    }
    return jTabbedPaneExplo_Index;
  }
View Full Code Here

Examples of javax.swing.border.EmptyBorder

   */
  public ControlPanel getControlPanel() {
    if (controlPanel == null) {
      // Setup the bottom Tag Info Panel
      controlPanel = new ControlPanel(this);
      controlPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
    }
    return controlPanel;
  }
View Full Code Here

Examples of javax.swing.border.EmptyBorder

        if (collapsed) {
          _toggleTreeViewButton.setIcon(imageManager.getImageIcon("images/widgets/tree-panel-collapse.png"));
          _toggleTreeViewButton.setBorder(null);
        } else {
          _toggleTreeViewButton.setIcon(imageManager.getImageIcon("images/widgets/tree-panel-expand.png"));
          _toggleTreeViewButton.setBorder(new EmptyBorder(0, 2, 0, 0));
        }
        _collapsibleTreePane.setCollapsed(!collapsed);
      }
    });
View Full Code Here

Examples of javax.swing.border.EmptyBorder

        Container contentPane = this.getContentPane();
        contentPane.setLayout(new BorderLayout());

        GridPanel gridPanel = new GridPanel();
        gridPanel.setBorder(new EmptyBorder(10, 10, 10, 20));
        String[] msgArray = CommonUtil.tokenize(message, "\n");
        for (int i = 0; i < msgArray.length; i++) {
            gridPanel.addComponent(null, "label" + i, new JLabel(msgArray[i]), 0, i, 1, 1);
        }

        JLabel iconLabel = new JLabel(icon);
        iconLabel.setBorder(new EmptyBorder(10, 20, 10, 10));
        contentPane.add(iconLabel, BorderLayout.WEST);
        contentPane.add(gridPanel, BorderLayout.CENTER);

        JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 3, 4));
View Full Code Here

Examples of javax.swing.border.EmptyBorder

        }

        tree = new JTree(topNode);
        tree.setRootVisible(false);
        tree.setShowsRootHandles(true);
        tree.setBorder( new EmptyBorder(5, 5, 5, 5) );
        tree.setCellRenderer(new DefaultTreeCellRenderer() {
            public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) {
                DefaultTreeCellRenderer renderer = (DefaultTreeCellRenderer) super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, row, hasFocus);
                if (value instanceof DefaultMutableTreeNode) {
                    DefaultMutableTreeNode defaultMutableTreeNode = (DefaultMutableTreeNode) value;
                    Object userObject =  defaultMutableTreeNode.getUserObject();
                    if (userObject instanceof TopicInfo) {
                        TopicInfo topicInfo = (TopicInfo) userObject;
                        renderer.setIcon( topicInfo.subtopicCount == 0 ? ResourceManager.HELPTOPIC_ICON : ResourceManager.HELPDIR_ICON );
                    }
                }
                return renderer;
            }
        });
        tree.addTreeSelectionListener(this);

        htmlPane = new JEditorPane();
        htmlPane.setEditable(false);
        htmlPane.setContentType("text/html");
        htmlPane.setEditorKit( new HTMLEditorKit() );
        htmlPane.setBorder(new EmptyBorder(5, 5, 5, 5));

        JSplitPane splitPane = new ProportionalSplitPane(JSplitPane.HORIZONTAL_SPLIT);
        splitPane.setResizeWeight(0.0d);
        splitPane.setBorder(null);
View Full Code Here

Examples of javax.swing.border.EmptyBorder

        buttons.add(Box.createHorizontalGlue());
        buttons.add(Box.createHorizontalStrut(10));

        JPanel jPanel = new JPanel();

        jPanel.setBorder(new EmptyBorder(10, 10, 10, 10));
        jPanel.add("Center", whole);
        getContentPane().add("Center", jPanel);
        doLayout();
        pack();
View Full Code Here

Examples of javax.swing.border.EmptyBorder

  private DCPanel createDecoration(JComponent renderedResult) {
    final DCPanel wrappingPanel = new DCPanel();
    wrappingPanel.setLayout(new BorderLayout());
    wrappingPanel.add(renderedResult, BorderLayout.CENTER);
    wrappingPanel.setBorder(new EmptyBorder(4, 20, 4, 4));
    return wrappingPanel;
  }
View Full Code Here

Examples of javax.swing.border.EmptyBorder

    buttonPanel.add(saveButton);
    WidgetUtils.addToGridBag(buttonPanel, formPanel, 0, row, 2, 1);

    final DCLabel descriptionLabel = DCLabel
        .brightMultiLine("A text file dictionary is a dictionary based on a text file containing values separated by linebreaks.");
    descriptionLabel.setBorder(new EmptyBorder(10, 10, 10, 20));
    descriptionLabel.setPreferredSize(new Dimension(300, 100));

    final DCPanel mainPanel = new DCPanel();
    mainPanel.setLayout(new VerticalLayout(4));
    mainPanel.add(descriptionLabel);
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.