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

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

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

JScrollPane.putClientProperty介绍

暂无

代码示例

代码示例来源:origin: de.sciss/scisslib

public JScrollPane placeMeInAPane() {
  final JScrollPane res = new JScrollPane(this,
      ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,
      ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
  res.putClientProperty("styleId", "undecorated");
  return res;
}

代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

/** 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));
}

代码示例来源:origin: org.fusesource.rrd4j/rrd4j

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);

代码示例来源:origin: de.sciss/scisslib

htmlPane.addPropertyChangeListener(this);
ggScroll = new JScrollPane(htmlPane);
ggScroll.putClientProperty("styleId", "undecorated");
ggVScroll = ggScroll.getVerticalScrollBar();

代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

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"));

相关文章

微信公众号

最新文章

更多

JScrollPane类方法