当前位置: 首页>>代码示例>>Java>>正文


Java DefaultFormBuilder.appendParagraphGapRow方法代码示例

本文整理汇总了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);
}
 
开发者ID:sindremehus,项目名称:subsonic,代码行数:17,代码来源:StatusPanel.java

示例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();
}
 
开发者ID:SQLPower,项目名称:sqlpower-library,代码行数:18,代码来源:SPServerInfoPanel.java

示例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();
  }
 
开发者ID:SQLPower,项目名称:wabit,代码行数:22,代码来源:ServerInfoPanel.java

示例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);
}
 
开发者ID:FutureSonic,项目名称:FutureSonic-Server,代码行数:21,代码来源:StatusPanel.java


注:本文中的com.jgoodies.forms.builder.DefaultFormBuilder.appendParagraphGapRow方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。