Java 8 BoxLayout - 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 BoxLayout class.

This code example shows how to use the following methods:
This code example shows how to use the following methods:
This code example shows how to use the following methods:
This code example shows how to use the following methods:
This code example shows how to use the following methods:
 
    final private JTextField numberField = new JTextField(10);
    final private JTextField nameField = new JTextField(15);
 
    public NumberNameField() { 
        setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
 
        add(numberField);
        add(nameField);
    } 
 
    public NumberName getNumberName() { 
        return new NumberName(numberField.getText(), nameField.getText());
    } 
} 
5
CodeRank
This code example shows how to use the following methods:
    	private Map<String, TwoLabelsContainer> labelMap;
    	 
    	public ValuesTab() { 
    		super(); 
    		 
    		setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
    		labelMap = new HashMap<String, TwoLabelsContainer>();
    	} 
    	 
    	public void newGroup(String name, boolean withBorder) {
    		currentPanel = new JPanel();
    		if (withBorder) {
	    		currentPanel.setBorder(BorderFactory.createCompoundBorder(
	                    BorderFactory.createTitledBorder(name),
	                    BorderFactory.createEmptyBorder(0,0,0,0)));
    		} 
    		 
    		// using GridBagLayout because it allows for 2 columns with different widths 
    		currentLayout = new GridBagLayout();
    		 
5
CodeRank
This code example shows how to use the following methods:
 
    final private JTextField dateField = new JTextField(10);
    final private JTextField timeField = new JTextField(8);
 
    public DateTimeField() { 
        setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
 
        DateTime dt = new DateTime();
 
        dateField.setText(dt.getDate());
        add(dateField);
 
        timeField.setText(dt.getTime());
        add(timeField);
    } 
 
    public DateTime getDateTime() { 
        return new DateTime(dateField.getText(), timeField.getText());
    } 
} 
5
CodeRank
This code example shows how to use the following methods:
        webRequestPanel.setLayout(new BorderLayout());
        webRequestPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),
                JMeterUtils.getResString("web_request"))); // $NON-NLS-1$ 
 
        JPanel northPanel = new JPanel();
        northPanel.setLayout(new BoxLayout(northPanel, BoxLayout.Y_AXIS));
        northPanel.add(getProtocolAndMethodPanel());
        northPanel.add(getPathPanel());
 
        webRequestPanel.add(northPanel, BorderLayout.NORTH);
        webRequestPanel.add(getParameterPanel(), BorderLayout.CENTER);
        webRequestPanel.add(getHTTPFileArgsPanel(), BorderLayout.SOUTH);
 
        this.add(getWebServerTimeoutPanel(), BorderLayout.NORTH);
        this.add(webRequestPanel, BorderLayout.CENTER);
        this.add(getProxyServerPanel(), BorderLayout.SOUTH);
    } 
 
    private JPanel getHTTPFileArgsPanel() {
        filesPanel = new HTTPFileArgsPanel(JMeterUtils.getResString("send_file")); // $NON-NLS-1$
5
CodeRank
This code example shows how to use the following methods:
 
    public URIPanel() { 
        super(); 
 
        setBorder(BorderFactory.createTitledBorder("Current URI"));
        setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
 
        add(uriTextField);
 
        setButton.setFocusable(false);
        add(setButton);
 
    } 
 
    public JTextField getUriTextField() {
        return uriTextField;
    } 
 
    public JButton getSetButton() {
        return setButton;
5
CodeRank
This code example shows how to use the following methods:
    /** 
     * Constructs a <code>StatusPanel</code>. 
     */ 
    public StatusPanel() { 
        super(); 
        setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
    } 
 
    /** 
     * Sets the specified component as the current status component of this 
     * panel. 
     *  
     * @param component Status component. 
     */ 
    public void setStatusComponent(JComponent component) {
        removeAll();
        add(component);
        repaint();
        validate();
    } 
5
CodeRank
See Code Examples for Java 8 BoxLayout Methods: