/** * 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; }
/** * @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; }
listScroller.setMinimumSize(new Dimension(150, 50)); listScroller.setAlignmentX(LEFT_ALIGNMENT); listScroller.setAlignmentY(BOTTOM_ALIGNMENT); iconList.ensureIndexIsVisible(iconList.getSelectedIndex());
keyPairsScrollPane.setAlignmentY(JPanel.LEFT_ALIGNMENT); keyPairsPanel.add(keyPairsScrollPane);
listScroller.setMinimumSize(new Dimension(150, 52)); listScroller.setAlignmentX(JPanel.LEFT_ALIGNMENT); listScroller.setAlignmentY(JPanel.BOTTOM_ALIGNMENT); iconList.ensureIndexIsVisible(iconList.getSelectedIndex());
trustedCertsScrollPanel.setAlignmentY(JPanel.LEFT_ALIGNMENT); trustedCertsPanel.add(trustedCertsScrollPanel); certificateDetailsButton.setAlignmentY(JPanel.RIGHT_ALIGNMENT);
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));
scrollPane.setAlignmentY(JScrollPane.TOP_ALIGNMENT);
setLayout(new java.awt.BorderLayout()); mainScrollPane.setAlignmentY(0.0F);
scrollpane.setAlignmentY(BOTTOM_ALIGNMENT); return panelOne;
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));
scrollPane.setAlignmentY(JScrollPane.TOP_ALIGNMENT);