本文整理汇总了Java中com.jgoodies.forms.builder.DefaultFormBuilder.appendParagraphGapRow方法的典型用法代码示例。如果您正苦于以下问题:Java DefaultFormBuilder.appendParagraphGapRow方法的具体用法?Java DefaultFormBuilder.appendParagraphGapRow怎么用?Java DefaultFormBuilder.appendParagraphGapRow使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.jgoodies.forms.builder.DefaultFormBuilder
的用法示例。
在下文中一共展示了DefaultFormBuilder.appendParagraphGapRow方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: layoutComponents
import com.jgoodies.forms.builder.DefaultFormBuilder; //导入方法依赖的package包/类
private void layoutComponents() {
JPanel buttons = ButtonBarFactory.buildRightAlignedBar(startButton, stopButton);
FormLayout layout = new FormLayout("right:d, 6dlu, max(d;30dlu):grow");
DefaultFormBuilder builder = new DefaultFormBuilder(layout, this);
builder.append("Service status", statusTextField);
builder.append("", buttons);
builder.appendParagraphGapRow();
builder.nextRow();
builder.append("Started on", startedTextField);
builder.append("Memory used", memoryTextField);
builder.append("Error message", errorTextField);
builder.append("Server address", urlButton);
setBorder(Borders.DIALOG_BORDER);
}
示例2: buildUI
import com.jgoodies.forms.builder.DefaultFormBuilder; //导入方法依赖的package包/类
private JPanel buildUI(SPServerInfo si) {
DefaultFormBuilder builder = new DefaultFormBuilder(new FormLayout("pref, 4dlu, max(100dlu; pref):grow")); //$NON-NLS-1$
builder.append(Messages.getString("SPServerInfoPanel.displayNameField"), name = new JTextField(si.getName())); //$NON-NLS-1$
builder.append(Messages.getString("SPServerInfoPanel.hostField"), host = new JTextField(si.getServerAddress())); //$NON-NLS-1$
builder.append(Messages.getString("SPServerInfoPanel.portField"), port = new JTextField(String.valueOf(si.getPort()))); //$NON-NLS-1$
builder.append(Messages.getString("SPServerInfoPanel.pathField"), path = new JTextField(si.getPath())); //$NON-NLS-1$
builder.append(Messages.getString("SPServerInfoPanel.usernameField"), username = new JTextField(si.getUsername())); //$NON-NLS-1$
if (si.isPasswordAllowed()) {
builder.append(Messages.getString("SPServerInfoPanel.passwordField"), password = new JPasswordField(si.getPassword())); //$NON-NLS-1$
}
builder.append(testButton = new JButton(Messages.getString("SPServerInfoPanel.testConnectionButton"))); //$NON-NLS-1$
builder.appendParagraphGapRow();
return builder.getPanel();
}
示例3: buildUI
import com.jgoodies.forms.builder.DefaultFormBuilder; //导入方法依赖的package包/类
private JPanel buildUI(SPServerInfo si) {
DefaultFormBuilder builder = new DefaultFormBuilder(new FormLayout("pref, 4dlu, max(100dlu; pref):grow"));
builder.append("Display Name", name = new JTextField(si.getName()));
builder.append("Host", host = new JTextField(si.getServerAddress()));
builder.append("Port", port = new JTextField(String.valueOf(si.getPort())));
builder.append("Path", path = new JTextField(si.getPath()));
builder.append("Username", username = new JTextField(si.getUsername()));
builder.append("Password", password = new JPasswordField(si.getPassword()));
builder.append(testButton = new JButton("Test Connection"));
this.testButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
lookupServerInfo(true);
}
});
builder.appendParagraphGapRow();
return builder.getPanel();
}
示例4: layoutComponents
import com.jgoodies.forms.builder.DefaultFormBuilder; //导入方法依赖的package包/类
private void layoutComponents() {
JPanel buttons = new ButtonBarBuilder()
.addGlue()
.addButton(startButton)
.addRelatedGap()
.addButton(stopButton)
.build();
FormLayout layout = new FormLayout("right:d, 6dlu, max(d;30dlu):grow");
DefaultFormBuilder builder = new DefaultFormBuilder(layout, this);
builder.append("Service status", statusTextField);
builder.append("", buttons);
builder.appendParagraphGapRow();
builder.nextRow();
builder.append("Started on", startedTextField);
builder.append("Memory used", memoryTextField);
builder.append("Error message", errorTextField);
builder.append("Server address", urlButton);
setBorder(Borders.DIALOG_BORDER);
}