Package javax.swing.border

Examples of javax.swing.border.EmptyBorder


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


   */
  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

        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

        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

        }

        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

        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

  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

    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

      String description = propertyDescriptor.getDescription();
      if (description != null) {
        description = description.replaceAll("\n", "</p><p>");
        description = "<html><p>" + description + "</p></html>";
        JLabel descLabel = new JLabel(description);
        descLabel.setBorder(new EmptyBorder(0, 4, 4, 0));
        descLabel.setFont(WidgetUtils.FONT_SMALL);
        WidgetUtils.addToGridBag(descLabel, this, 0, i + 1, 1, 1, GridBagConstraints.NORTHEAST, 0);
      }

      PropertyWidget<?> propertyWidget = _propertyWidgetFactory.create(propertyDescriptor);
View Full Code Here

  private DCPanel createDecoration(JComponent renderedResult) {
    renderedResult.setBorder(WidgetUtils.BORDER_SHADOW);
    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

TOP

Related Classes of javax.swing.border.EmptyBorder

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.