Package javax.swing.border

Examples of javax.swing.border.EmptyBorder


    _authenticationService = authenticationService;
    _glassPane = glassPane;
    _userPreferences = userPreferences;

    setOpaque(false);
    setBorder(new CompoundBorder(new LineBorder(_borderColor, 1), new EmptyBorder(20, 20, 20, 30)));
    setVisible(false);
    setSize(WIDTH, 400);
    setLocation(getXWhenOut(), POSITION_Y);
  }
View Full Code Here


  public HumanInferenceToolbarButton(Icon icon) {
    super(icon);
    addActionListener(new OpenBrowserAction("http://eobjects.org/humaninference"));
    setOpaque(false);
    setBorder(new EmptyBorder(4, 4, 4, 4));
    setToolTipText("Powered by Human Inference");
  }
View Full Code Here

      if (icon != null) {
        result.setIcon(icon);
      }
      if (isIndentEnabled()) {
        result.setBorder(new EmptyBorder(0, indent, 0, 0));
      }
    } else if (value instanceof InputColumn<?>) {
      result.setText(((InputColumn<?>) value).getName());
      result.setIcon(imageManager.getImageIcon("images/model/column.png", IconUtils.ICON_SIZE_SMALL));
    }
View Full Code Here

    }

    ToolTipManager.sharedInstance().setInitialDelay(500);
    PopupFactory.setSharedInstance(new DCPopupFactory());

    EmptyBorder emptyBorder = new EmptyBorder(0, 0, 0, 0);
    LineBorder borderDarkest3 = new LineBorder(WidgetUtils.BG_COLOR_DARKEST, 3);
    UIManager.put("ScrollPane.border", emptyBorder);
    UIManager.put("Menu.border", borderDarkest3);
    UIManager.put("Menu.background", WidgetUtils.BG_COLOR_DARKEST);
    UIManager.put("Menu.foreground", WidgetUtils.BG_COLOR_BRIGHTEST);

    UIManager.put("MenuItem.selectionForeground", WidgetUtils.BG_COLOR_BRIGHTEST);
    UIManager.put("MenuItem.selectionBackground", WidgetUtils.BG_COLOR_LESS_DARK);
   
    UIManager.put("List.selectionForeground", WidgetUtils.BG_COLOR_BRIGHTEST);
    UIManager.put("List.selectionBackground", WidgetUtils.BG_COLOR_LESS_DARK);
    UIManager.put("List.focusCellHighlightBorder", WidgetUtils.BORDER_THIN);
   
    UIManager.put("Tree.selectionForeground", WidgetUtils.BG_COLOR_BRIGHTEST);
    UIManager.put("Tree.selectionBackground", WidgetUtils.BG_COLOR_LESS_DARK);
    UIManager.put("Tree.selectionBorderColor", WidgetUtils.BG_COLOR_MEDIUM);
   
    UIManager.put("Table.selectionForeground", WidgetUtils.BG_COLOR_BRIGHTEST);
    UIManager.put("Table.selectionBackground", WidgetUtils.BG_COLOR_LESS_DARK);
    UIManager.put("Table.focusCellHighlightBorder", WidgetUtils.BORDER_THIN);
   
    // splitpane "flattening" (remove bevel like borders in divider)
    UIManager.put("SplitPane.border", new EmptyBorder(0, 0, 0, 0));
    UIManager.put("SplitPaneDivider.border", new EmptyBorder(0, 0, 0, 0));

    UIManager.put("PopupMenu.border", emptyBorder);
    UIManager.put("PopupMenu.background", WidgetUtils.BG_COLOR_DARKEST);
    UIManager.put("PopupMenu.foreground", WidgetUtils.BG_COLOR_BRIGHTEST);
    UIManager.put("MenuItem.border", borderDarkest3);
View Full Code Here

    }

    final DCLabel descriptionLabel = DCLabel
        .brightMultiLine("<p>Simple string patterns are tokenized patterns made up of these elements.</p>"
            + "<p>* A = upper case letters<br>* a = lower case letters<br>* 9 = digits</p>");
    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

      _statusLabels.add(statusLabel);
    }

    final DCLabel descriptionLabel = DCLabel
        .brightMultiLine("A regex (regular expression) is a concise and flexible means for identifying strings of text of interest, such as particular characters, words, or patterns of characters. The registered regexes can be used to identify certain types of strings and validate their pattern-correctness.");
    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

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

    final DCLabel descriptionLabel = DCLabel
        .brightMultiLine("A text file synonym catalog is a synonym catalog based on a text file containing comma separated values where the first column represents the master term.");
    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

  public void addRenderedResult(JComponent component) {
    ImageIcon icon = imageManager.getImageIcon("images/actions/drill-to-detail.png");
    JXTaskPane taskPane = WidgetFactory.createTaskPane("Detailed results", icon);

    final DCPanel taskPanePanel = new DCPanel(WidgetUtils.BG_COLOR_BRIGHT, WidgetUtils.BG_COLOR_BRIGHTEST);
    taskPanePanel.setBorder(new EmptyBorder(4, 4, 4, 4));
    taskPanePanel.setLayout(new BorderLayout());
    taskPanePanel.add(component);

    taskPane.add(taskPanePanel);
View Full Code Here

    row++;
    DCLabel descriptionLabel = DCLabel
        .darkMultiLine("Performance options are currently not configurable while you're running the application. "
            + "You need to edit the applications configuration file for this. The configuration file is named "
            + "<b>conf.xml</b> and is located in the root of the folder where you've installed DataCleaner.");
    descriptionLabel.setBorder(new EmptyBorder(10, 10, 0, 10));
    WidgetUtils.addToGridBag(descriptionLabel, panel, 0, row, 2, 1);
    return panel;
  }
View Full Code Here

    setLayout(new VerticalLayout(10));
    add(newSynonymCatalogsLabel);
    add(createNewSynonymCatalogsPanel());
    add(Box.createVerticalStrut(10));
    add(existingSynonymCatalogsLabel);
    setBorder(new EmptyBorder(10, 10, 10, 0));
    add(_listPanel);
  }
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.