Java 8 EmptyBorder - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 EmptyBorder class.

This code example shows how to use the following methods:
     */ 
    private void init() { 
        this.setLayout(new BorderLayout());
 
        // MAIN PANEL 
        Border margin = new EmptyBorder(10, 10, 5, 10);
        this.setBorder(margin);
 
        // Add the main panel and the graph 
        this.add(this.makeTitlePanel(), BorderLayout.NORTH);
        this.createTabs();
        prefixField = new JLabeledTextField(JMeterUtils.getResString("monitor_label_prefix")); // $NON-NLS-1$
        add(prefixField, BorderLayout.SOUTH);
    } 
 
    private void createTabs() { 
        tabPane = new MonitorTabPane();
        createHealthPane(tabPane);
        createPerformancePane(tabPane);
        this.add(tabPane, BorderLayout.CENTER);
5
CodeRank
This code example shows how to use the following methods:
  public BrowserOptionsWindow(String title, Cache cache, String[] axes) {
    super(title);
 
    CacheComponent panel = new CacheComponent(cache, axes);
 
    panel.setBorder(new EmptyBorder(15, 15, 15, 15));
    panel.setMinimumSize(new Dimension(300, 500));
    setContentPane(panel);
    setDefaultCloseOperation(DISPOSE_ON_CLOSE);
    pack();
  } 
 
} 
5
CodeRank
This code example shows how to use the following methods:
    final private JCheckBox displayMaximumCheckBox = new JCheckBox();
 
    public MessageView() { 
        super(new GridBagLayout());
 
        this.setBorder(new EmptyBorder(5, 5, 5, 5));
 
        form = new Form(5);
 
        displayMaximumCheckBox.setSelected(true);
        getForm().addLabelAndLastField("Display whole message:", displayMaximumCheckBox, this);
    } 
 
    public Form getForm() { 
        return form;
    } 
 
    public JCheckBox getDisplayMaximumCheckBox() {
        return displayMaximumCheckBox;
    } 
5
CodeRank
This code example shows how to use the following methods:
    @Inject 
    private SearchAction action;
 
    @Inject 
    public void initialize() { 
        setBorder(new EmptyBorder(5, 5, 5, 5));
        setLayout(new BorderLayout(0, 0));
 
        header = new JPanel();
        add(header, BorderLayout.NORTH);
        header.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
 
        searchLabel = new JLabel("Enter zip code:");
        header.add(searchLabel);
 
        searchQuery = new JTextField();
        header.add(searchQuery);
        searchQuery.setColumns(10);
 
        searchButton = new JButton("Search");
5
CodeRank
This code example shows how to use the following methods:
 
  protected Component createContentPane()
  { 
    final JPanel root = new JPanel();
    root.setLayout(new BorderLayout());
    root.setBorder(new EmptyBorder(5, 5, 5, 5));
    root.add(GroupLayoutUtil.makeSimpleForm(3, 2,
        new JLabel("Columns"), colsField,
        new JLabel("Header Rows"), headerRowsField,
        new JLabel("Data Rows"), dataRowsField),
        BorderLayout.NORTH);
    return root;
  } 
 
  public boolean createTable() 
  { 
    return super.performEdit(); 
  } 
 
  public int getColumns() 
4
CodeRank
This code example shows how to use the following methods:
    @Inject 
    private TasksResultTableModel model;
 
    @Inject 
    public void initialize() { 
        setBorder(new EmptyBorder(5, 5, 5, 5));
        setLayout(new BorderLayout(0, 0));
 
        header = new JPanel();
        add(header, BorderLayout.NORTH);
        header.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
 
        button = new JButton("Load seam-tasks statistics");
        button.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                buttonAction(); 
            } 
        }); 
 
        header.add(button);
5
CodeRank
This code example shows how to use the following methods:
  } 
 
  protected Component createContentPane()
  { 
    final JPanel panel = new JPanel();
    panel.setBorder(new EmptyBorder(5,5,5,5));
    panel.setLayout(new BorderLayout(5,5));
    panel.add(new JLabel(Messages.getString("SystemParameterDialog.Available")), BorderLayout.NORTH);
    panel.add(new JScrollPane(systemParameterTable), BorderLayout.CENTER);
    return panel;
  } 
 
  public void showAdvancedEditor() 
  { 
    performEdit(); 
  } 
} 
4
CodeRank
This code example shows how to use the following methods:
This code example shows how to use the following methods:
 
    public TagCellRenderer() { 
        fontStandard = UIManager.getFont("Table.font");
        fontItalic = fontStandard.deriveFont(Font.ITALIC);
        setOpaque(true);
        setBorder(new EmptyBorder(5,5,5,5));
    } 
 
    /** 
     * renders the name of a tag in the second column of 
     * the table 
     * 
     * @param tag  the tag 
     */ 
    protected void renderTagName(TagModel tag) {
        setText(tag.getName());
    } 
 
    /** 
     * renders the value of a a tag in the third column of 
5
CodeRank
This code example shows how to use the following methods:
		setModal(true); 
		setResizable(false); 
        setTitle("Folder Name"); 
		setBounds(100, 100, 500, 132); 
		getContentPane().setLayout(new BorderLayout()); 
		contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5)); 
		getContentPane().add(contentPanel, BorderLayout.CENTER); 
		contentPanel.setLayout(null); 
		 
		JLabel lblFolder = new JLabel("Enter Folder Name: "); 
        lblFolder.setBounds(10, 11, 110, 14); 
		contentPanel.add(lblFolder); 
		 
		textField = new JTextField(); 
		textField.setEditable(true); 
        textField.setBounds(125, 8, 300, 20); 
		contentPanel.add(textField); 
		textField.setColumns(10); 
		 
		/* 
5
CodeRank
See Code Examples for Java 8 EmptyBorder Methods: