org.jdesktop.layout.GroupLayout.setHorizontalGroup()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(10.0k)|赞(0)|评价(0)|浏览(134)

本文整理了Java中org.jdesktop.layout.GroupLayout.setHorizontalGroup()方法的一些代码示例,展示了GroupLayout.setHorizontalGroup()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GroupLayout.setHorizontalGroup()方法的具体详情如下:
包路径:org.jdesktop.layout.GroupLayout
类名称:GroupLayout
方法名:setHorizontalGroup

GroupLayout.setHorizontalGroup介绍

[英]Sets the Group that is responsible for layout along the horizontal axis.
[中]设置负责沿水平轴进行布局的Group

代码示例

代码示例来源:origin: marytts/marytts

layout.setHorizontalGroup(layout
    .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(org.jdesktop.layout.GroupLayout.TRAILING,

代码示例来源:origin: marytts/marytts

layout.setHorizontalGroup(layout
    .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(org.jdesktop.layout.GroupLayout.TRAILING,

代码示例来源:origin: marytts/marytts

layout.setHorizontalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
    org.jdesktop.layout.GroupLayout.TRAILING,
    layout.createSequentialGroup()

代码示例来源:origin: marytts/marytts

layout.setHorizontalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
    org.jdesktop.layout.GroupLayout.TRAILING,
    layout.createSequentialGroup()

代码示例来源:origin: marytts/marytts

layout.setHorizontalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
    org.jdesktop.layout.GroupLayout.TRAILING,
    layout.createSequentialGroup()

代码示例来源:origin: marytts/marytts

layout.setHorizontalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
    org.jdesktop.layout.GroupLayout.TRAILING,
    layout.createSequentialGroup()

代码示例来源:origin: marytts/marytts

layout.setHorizontalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
    layout.createSequentialGroup()
        .addContainerGap()

代码示例来源:origin: marytts/marytts

layout.setHorizontalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
    layout.createSequentialGroup()
        .addContainerGap()

代码示例来源:origin: marytts/marytts

layout.setHorizontalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
    layout.createSequentialGroup()
        .addContainerGap()

代码示例来源:origin: marytts/marytts

layout.setHorizontalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
    layout.createSequentialGroup()
        .addContainerGap()

代码示例来源:origin: jersey/jersey

jPanel1Layout.setHorizontalGroup(
    jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
        .add(jPanel1Layout.createSequentialGroup()
jPanel2Layout.setHorizontalGroup(
    jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
        .add(jPanel2Layout.createSequentialGroup()
layout.setHorizontalGroup(
    layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
        .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()

代码示例来源:origin: marytts/marytts

jPanel_CopyrightTextLayout.setHorizontalGroup(jPanel_CopyrightTextLayout
    .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(jPanel_CopyrightTextLayout
layout.setHorizontalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(jPanel_CopyrightText,
    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE));

代码示例来源:origin: marytts/marytts

jPanel_SpeakerWindowLayout.setHorizontalGroup(jPanel_SpeakerWindowLayout
    .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(org.jdesktop.layout.GroupLayout.TRAILING,
layout.setHorizontalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
    layout.createSequentialGroup()
        .addContainerGap()

代码示例来源:origin: marytts/marytts

pDownloadLayout.setHorizontalGroup(pDownloadLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
    pDownloadLayout
        .createSequentialGroup()
pInstallButtonsLayout.setHorizontalGroup(pInstallButtonsLayout.createParallelGroup(
    org.jdesktop.layout.GroupLayout.LEADING).add(
    org.jdesktop.layout.GroupLayout.TRAILING,
jPanel1Layout.setHorizontalGroup(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
    jPanel1Layout
        .createSequentialGroup()
layout.setHorizontalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
    org.jdesktop.layout.GroupLayout.TRAILING,
    layout.createSequentialGroup()

代码示例来源:origin: marytts/marytts

pDownloadLayout.setHorizontalGroup(pDownloadLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
    pDownloadLayout
        .createSequentialGroup()
pInstallButtonsLayout.setHorizontalGroup(pInstallButtonsLayout.createParallelGroup(
    org.jdesktop.layout.GroupLayout.LEADING).add(
    org.jdesktop.layout.GroupLayout.TRAILING,
jPanel1Layout.setHorizontalGroup(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
    jPanel1Layout
        .createSequentialGroup()
layout.setHorizontalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
    org.jdesktop.layout.GroupLayout.TRAILING,
    layout.createSequentialGroup()

代码示例来源:origin: marytts/marytts

/**
 * This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of
 * this method is always regenerated by the Form Editor.
 */
// <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
private void initComponents() {
  questionText = new javax.swing.JLabel();
  jScrollPane1 = new javax.swing.JScrollPane();
  licenseTextPane = new javax.swing.JTextPane();
  jScrollPane1.setViewportView(licenseTextPane);
  org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
  this.setLayout(layout);
  layout.setHorizontalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
      org.jdesktop.layout.GroupLayout.TRAILING,
      layout.createSequentialGroup()
          .addContainerGap()
          .add(layout
              .createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
              .add(org.jdesktop.layout.GroupLayout.LEADING, jScrollPane1,
                  org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 462, Short.MAX_VALUE)
              .add(org.jdesktop.layout.GroupLayout.LEADING, questionText,
                  org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 462, Short.MAX_VALUE)).addContainerGap()));
  layout.setVerticalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
      layout.createSequentialGroup()
          .addContainerGap()
          .add(questionText, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 58,
              org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
          .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
          .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 460, Short.MAX_VALUE).addContainerGap()));
}// </editor-fold>//GEN-END:initComponents

代码示例来源:origin: marytts/marytts

/**
 * This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of
 * this method is always regenerated by the Form Editor.
 */
// <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
private void initComponents() {
  questionText = new javax.swing.JLabel();
  jScrollPane1 = new javax.swing.JScrollPane();
  licenseTextPane = new javax.swing.JTextPane();
  jScrollPane1.setViewportView(licenseTextPane);
  org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
  this.setLayout(layout);
  layout.setHorizontalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
      org.jdesktop.layout.GroupLayout.TRAILING,
      layout.createSequentialGroup()
          .addContainerGap()
          .add(layout
              .createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
              .add(org.jdesktop.layout.GroupLayout.LEADING, jScrollPane1,
                  org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 462, Short.MAX_VALUE)
              .add(org.jdesktop.layout.GroupLayout.LEADING, questionText,
                  org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 462, Short.MAX_VALUE)).addContainerGap()));
  layout.setVerticalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
      layout.createSequentialGroup()
          .addContainerGap()
          .add(questionText, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 58,
              org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
          .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
          .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 460, Short.MAX_VALUE).addContainerGap()));
}// </editor-fold>//GEN-END:initComponents

代码示例来源:origin: jersey/jersey

jPanel3Layout.setHorizontalGroup(
    jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
        .add(jPanel3Layout.createSequentialGroup()
jPanel1Layout.setHorizontalGroup(
    jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
        .add(jPanel1Layout.createSequentialGroup()
jPanel2Layout.setHorizontalGroup(
    jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
        .add(jPanel2Layout.createSequentialGroup()
jPanel4Layout.setHorizontalGroup(
    jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
        .add(jPanel4Layout.createSequentialGroup()
layout.setHorizontalGroup(
    layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
        .add(layout.createSequentialGroup()

代码示例来源:origin: marytts/marytts

pCurrentLayout.setHorizontalGroup(pCurrentLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
    pCurrentLayout
        .createSequentialGroup()
pOverallLayout.setHorizontalGroup(pOverallLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
    org.jdesktop.layout.GroupLayout.TRAILING,
    pOverallLayout.createSequentialGroup().addContainerGap()
layout.setHorizontalGroup(layout
    .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(pCurrent, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,

代码示例来源:origin: marytts/marytts

pCurrentLayout.setHorizontalGroup(pCurrentLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
    pCurrentLayout
        .createSequentialGroup()
pOverallLayout.setHorizontalGroup(pOverallLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
    org.jdesktop.layout.GroupLayout.TRAILING,
    pOverallLayout.createSequentialGroup().addContainerGap()
layout.setHorizontalGroup(layout
    .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(pCurrent, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,

相关文章