javax.swing.JScrollPane.setAlignmentY()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(4.2k)|赞(0)|评价(0)|浏览(171)

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

JScrollPane.setAlignmentY介绍

暂无

代码示例

代码示例来源:origin: robo-code/robocode

/**
 * Return the robotButtonsScrollPane
 *
 * @return JScrollPane
 */
private JScrollPane getRobotButtonsScrollPane() {
  if (robotButtonsScrollPane == null) {
    robotButtonsScrollPane = new JScrollPane();
    robotButtonsScrollPane.setAutoscrolls(false);
    robotButtonsScrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);
    robotButtonsScrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
    robotButtonsScrollPane.setAlignmentY(Component.TOP_ALIGNMENT);
    robotButtonsScrollPane.setMaximumSize(new Dimension(113, 32767));
    robotButtonsScrollPane.setPreferredSize(new Dimension(113, 28));
    robotButtonsScrollPane.setAlignmentX(Component.CENTER_ALIGNMENT);
    robotButtonsScrollPane.setMinimumSize(new Dimension(113, 53));
    robotButtonsScrollPane.setViewportView(getRobotButtonsPanel());
  }
  return robotButtonsScrollPane;
}

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

/**
   * @param workspace TODO
   * @return scrollpane containing sidebar
   */
  public JScrollPane getScrollableSideBar()
  {
    if (this.scrollableSideBar == null)
    {
      ISideBar sideBar = this.workspace.getSideBar();
      this.scrollableSideBar = new JScrollPane(sideBar.getAWTComponent());
      this.scrollableSideBar.setAlignmentY(Component.TOP_ALIGNMENT);
      this.scrollableSideBar.getHorizontalScrollBar().setUI(new TinyScrollBarUI());
      this.scrollableSideBar.getVerticalScrollBar().setUI(new TinyScrollBarUI());
//            this.scrollableSideBar.setBorder(new MatteBorder(0, 1, 0, 0, ThemeManager.getInstance().getTheme()
//                    .getSidebarBorderColor()));
      this.scrollableSideBar.setBorder(new EmptyBorder(0, 0, 0, 0));
      this.scrollableSideBar.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
      this.scrollableSideBar.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);
    }
    return this.scrollableSideBar;
  }

代码示例来源:origin: cytoscape/application

listScroller.setMinimumSize(new Dimension(150, 50));
listScroller.setAlignmentX(LEFT_ALIGNMENT);
listScroller.setAlignmentY(BOTTOM_ALIGNMENT);
iconList.ensureIndexIsVisible(iconList.getSelectedIndex());

代码示例来源:origin: net.sf.taverna.t2.ui-components/credential-manager-ui

keyPairsScrollPane.setAlignmentY(JPanel.LEFT_ALIGNMENT);
keyPairsPanel.add(keyPairsScrollPane);

代码示例来源:origin: cytoscape/application

listScroller.setMinimumSize(new Dimension(150, 52));
listScroller.setAlignmentX(JPanel.LEFT_ALIGNMENT);
listScroller.setAlignmentY(JPanel.BOTTOM_ALIGNMENT);
iconList.ensureIndexIsVisible(iconList.getSelectedIndex());

代码示例来源:origin: net.sf.taverna.t2.ui-components/credential-manager-ui

trustedCertsScrollPanel.setAlignmentY(JPanel.LEFT_ALIGNMENT);
trustedCertsPanel.add(trustedCertsScrollPanel);
certificateDetailsButton.setAlignmentY(JPanel.RIGHT_ALIGNMENT);

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

scrollPane_2.setAlignmentY(Component.TOP_ALIGNMENT);
GridBagConstraints gbc_scrollPane_2 = new GridBagConstraints();
gbc_scrollPane_2.fill = GridBagConstraints.BOTH;
scrollPane.setAlignmentY(Component.TOP_ALIGNMENT);
scrollPane.setAlignmentX(Component.LEFT_ALIGNMENT);
hbSubjectAlternativeName.add(scrollPane);
scrollPane_1.setAlignmentY(Component.TOP_ALIGNMENT);
hbIssuerAlternativeName.add(scrollPane_1);
scrollPane_3.setAlignmentY(Component.TOP_ALIGNMENT);
scrollPane_3.setPreferredSize(new Dimension(300, 90));
scrollPane_3.setSize(new Dimension(300, 0));

代码示例来源:origin: girtel/Net2Plan

scrollPane.setAlignmentY(JScrollPane.TOP_ALIGNMENT);

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-kenai-ui

setLayout(new java.awt.BorderLayout());
mainScrollPane.setAlignmentY(0.0F);

代码示例来源:origin: com.tourgeek.thin.app/com.tourgeek.thin.app.booking

scrollpane.setAlignmentY(BOTTOM_ALIGNMENT);
return panelOne;

代码示例来源:origin: com.tourgeek.thin.app/com.tourgeek.thin.app.booking

scrollpane.setPreferredSize(new Dimension(10,10));
scrollpane.setAlignmentX(Component.LEFT_ALIGNMENT);
scrollpane.setAlignmentY(Component.TOP_ALIGNMENT);
this.add(scrollpane);
this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));

代码示例来源:origin: girtel/Net2Plan

scrollPane.setAlignmentY(JScrollPane.TOP_ALIGNMENT);

相关文章

JScrollPane类方法