public JScrollPane placeMeInAPane() { final JScrollPane res = new JScrollPane(this, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); res.putClientProperty("styleId", "undecorated"); return res; }
/** Creates new form FontChooserPanel */ public PaletteFontChooserSelectionPanel() { labels = ResourceBundleUtil.getBundle("org.jhotdraw.gui.Labels"); initComponents(); collectionList.setModel(new DefaultListModel()); familyList.setModel(new DefaultListModel()); faceList.setModel(new DefaultListModel()); // Customization of Quaqua Look and Feel: Set small scroll bars collectionsScrollPane.putClientProperty("JComponent.sizeVariant", "small"); familiesScrollPane.putClientProperty("JComponent.sizeVariant", "small"); facesScrollPane.putClientProperty("JComponent.sizeVariant", "small"); // Customization of Nimbus Look and Feel: Set small scroll bars collectionsScrollPane.getVerticalScrollBar().putClientProperty("JComponent.sizeVariant", "small"); familiesScrollPane.getVerticalScrollBar().putClientProperty("JComponent.sizeVariant", "small"); facesScrollPane.getVerticalScrollBar().putClientProperty("JComponent.sizeVariant", "small"); collectionsScrollPane.getVerticalScrollBar().updateUI(); familiesScrollPane.updateUI(); facesScrollPane.getVerticalScrollBar().updateUI(); setOpaque(true); setBackground(new Color(0xededed)); }
leftPanel.setLayout(new BorderLayout()); JScrollPane treePane = new JScrollPane(mainTree); treePane.putClientProperty("JScrollBar.fastWheelScrolling", Boolean.TRUE); leftPanel.add(treePane); leftPanel.setPreferredSize(MAIN_TREE_SIZE); spGeneral.putClientProperty("JScrollBar.fastWheelScrolling", Boolean.TRUE); spGeneral.setPreferredSize(INFO_PANE_SIZE); tabbedPane.add("General info", spGeneral); spDatasource.putClientProperty("JScrollBar.fastWheelScrolling", Boolean.TRUE); spDatasource.setPreferredSize(INFO_PANE_SIZE); tabbedPane.add("Datasource info", spDatasource); spArchive.putClientProperty("JScrollBar.fastWheelScrolling", Boolean.TRUE); archiveTable.setModel(inspectorModel.getArchiveTableModel()); archiveTable.getColumnModel().getColumn(0).setPreferredWidth(150); spData.putClientProperty("JScrollBar.fastWheelScrolling", Boolean.TRUE); dataTable.setModel(inspectorModel.getDataTableModel()); dataTable.getColumnModel().getColumn(0).setPreferredWidth(100);
htmlPane.addPropertyChangeListener(this); ggScroll = new JScrollPane(htmlPane); ggScroll.putClientProperty("styleId", "undecorated"); ggVScroll = ggScroll.getVerticalScrollBar();
scrollPane.putClientProperty("JComponent.sizeVariant", "small"); scrollPane.setBorder(PaletteLookAndFeel.getInstance().getBorder("ScrollPane.border")); linkField.setToolTipText(labels.getString("attribute.figureLink.toolTipText")); scrollPane.putClientProperty("JComponent.sizeVariant", "small"); scrollPane.setBorder(PaletteLookAndFeel.getInstance().getBorder("ScrollPane.border")); linkField.setToolTipText(labels.getString("attribute.figureLink.toolTipText"));