Java Code Examples for com.sun.swingset3.demos.JGridPanel#setBorderEqual()
The following examples show how to use
com.sun.swingset3.demos.JGridPanel#setBorderEqual() .
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: TextFieldDemo.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private void initUI() { tfHistory.setHistory(Arrays.asList(resourceManager.getString("TextFieldDemo.history.words").split("\\,"))); JGridPanel pnDow = new JGridPanel(3, 2); pnDow.cell(tfDow). cell(btnGo). cell(lbDowResult); JGridPanel pnPassword = new JGridPanel(3, 2); pnPassword.cell(tfPassword1). cell(tfPassword2). cell(); JGridPanel pnContent = new JGridPanel(1, 0, 6); pnContent.setBorderEqual(10); pnContent.cell(lbHistoryTextField). cell(tfHistory). cell(lbDow, new Insets(20, 0, 0, 0)). cell(pnDow). cell(lbPassword, new Insets(20, 0, 0, 0)). cell(pnPassword). cell(); add(pnContent); }
Example 2
Source File: GridBagLayoutDemo.java From littleluck with Apache License 2.0 | 5 votes |
private void initUI() { JGridPanel pnContent = new JGridPanel(1, 0, 2); pnContent.setBorderEqual(10); pnContent.cell(lbCaption, JGridPanel.Layout.FILL). cell(). cell(calculator, JGridPanel.Layout.CENTER, JGridPanel.Layout.FIRST). cell(); add(pnContent); }
Example 3
Source File: TextFieldDemo.java From littleluck with Apache License 2.0 | 5 votes |
private void initUI() { tfHistory.setHistory(Arrays.asList(resourceManager.getString("TextFieldDemo.history.words").split("\\,"))); JGridPanel pnDow = new JGridPanel(3, 2); pnDow.cell(tfDow). cell(btnGo). cell(lbDowResult); JGridPanel pnPassword = new JGridPanel(3, 2); pnPassword.cell(tfPassword1). cell(tfPassword2). cell(); JGridPanel pnContent = new JGridPanel(1, 0, 6); pnContent.setBorderEqual(10); pnContent.cell(lbHistoryTextField). cell(tfHistory). cell(lbDow, new Insets(20, 0, 0, 0)). cell(pnDow). cell(lbPassword, new Insets(20, 0, 0, 0)). cell(pnPassword). cell(); add(pnContent); }
Example 4
Source File: GridBagLayoutDemo.java From beautyeye with Apache License 2.0 | 5 votes |
private void initUI() { JGridPanel pnContent = new JGridPanel(1, 0, 2); pnContent.setBorderEqual(10); pnContent.cell(lbCaption, JGridPanel.Layout.FILL). cell(). cell(calculator, JGridPanel.Layout.CENTER, JGridPanel.Layout.FIRST). cell(); add(pnContent); }
Example 5
Source File: TextFieldDemo.java From beautyeye with Apache License 2.0 | 5 votes |
private void initUI() { tfHistory.setHistory(Arrays.asList(resourceManager.getString("TextFieldDemo.history.words").split("\\,"))); JGridPanel pnDow = new JGridPanel(3, 2); pnDow.cell(tfDow). cell(btnGo). cell(lbDowResult); JGridPanel pnPassword = new JGridPanel(3, 2); pnPassword.cell(tfPassword1). cell(tfPassword2). cell(); JGridPanel pnContent = new JGridPanel(1, 0, 6); pnContent.setBorderEqual(10); pnContent.cell(lbHistoryTextField). cell(tfHistory). cell(lbDow, new Insets(20, 0, 0, 0)). cell(pnDow). cell(lbPassword, new Insets(20, 0, 0, 0)). cell(pnPassword). cell(); add(pnContent); }
Example 6
Source File: GridBagLayoutDemo.java From Darcula with Apache License 2.0 | 5 votes |
private void initUI() { JGridPanel pnContent = new JGridPanel(1, 0, 2); pnContent.setBorderEqual(10); pnContent.cell(lbCaption, JGridPanel.Layout.FILL). cell(). cell(calculator, JGridPanel.Layout.CENTER, JGridPanel.Layout.FIRST). cell(); add(pnContent); }
Example 7
Source File: TextFieldDemo.java From Darcula with Apache License 2.0 | 5 votes |
private void initUI() { tfHistory.setHistory(Arrays.asList(resourceManager.getString("TextFieldDemo.history.words").split("\\,"))); JGridPanel pnDow = new JGridPanel(3, 2); pnDow.cell(tfDow). cell(btnGo). cell(lbDowResult); JGridPanel pnPassword = new JGridPanel(3, 2); pnPassword.cell(tfPassword1). cell(tfPassword2). cell(); JGridPanel pnContent = new JGridPanel(1, 0, 6); pnContent.setBorderEqual(10); pnContent.cell(lbHistoryTextField). cell(tfHistory). cell(lbDow, new Insets(20, 0, 0, 0)). cell(pnDow). cell(lbPassword, new Insets(20, 0, 0, 0)). cell(pnPassword). cell(); add(pnContent); }