Java Code Examples for java.awt.GridBagConstraints#LAST_LINE_END
The following examples show how to use
java.awt.GridBagConstraints#LAST_LINE_END .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: HistoryWindow.java From Spark with Apache License 2.0 | 5 votes |
private void initLayout() { GridBagLayout layout = new GridBagLayout(); setLayout(layout); GridBagConstraints c = new GridBagConstraints(); c.anchor = GridBagConstraints.FIRST_LINE_START; c.fill = GridBagConstraints.HORIZONTAL; c.gridx = 0; c.gridy = 0; c.insets = new Insets(13, 13, 0, 13); add(getLabel(), c); c.anchor = GridBagConstraints.NORTHWEST; c.fill = GridBagConstraints.BOTH; c.gridx = 0; c.gridy = 1; c.weightx = 1; c.weighty = 1; add(getHistoryContentPanel(), c); c.anchor = GridBagConstraints.WEST; c.fill = GridBagConstraints.HORIZONTAL; c.gridx = 0; c.gridy = 2; c.weighty = 0; c.insets = new Insets(5, 13, 0, 13); add(getSizePanel(), c); c.anchor = GridBagConstraints.LAST_LINE_END; c.fill = GridBagConstraints.HORIZONTAL; c.gridx = 0; c.gridy = 3; c.insets = new Insets(0, 13, 5, 10); add(getButtonsPanel(), c); }