本文整理了Java中javax.swing.JScrollPane.getComponents()
方法的一些代码示例,展示了JScrollPane.getComponents()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JScrollPane.getComponents()
方法的具体详情如下:
包路径:javax.swing.JScrollPane
类名称:JScrollPane
方法名:getComponents
暂无
代码示例来源:origin: stackoverflow.com
Component[] components = xxx.getComponents();
for (int i = 0, l = components.length; i < l; i++) {
if (components[i] instanceof JScrollPane) {
JScrollPane scr = (JScrollPane) components[i];
Component[] components1 = scr.getComponents();n
代码示例来源:origin: bcdev/beam
@Override
public PopupPanel createPopupComponent() {
final PopupPanel popupComponent = super.createPopupComponent();
final JScrollPane content = (JScrollPane) popupComponent.getComponents()[0];
final JComponent upperPane = (JComponent) content.getComponents()[0];
FolderChooser folderChooser = (FolderChooser) upperPane.getComponents()[0];
folderChooser.setRecentListVisible(false);
popupComponent.setTitle("Choose download directory");
return popupComponent;
}
};
代码示例来源:origin: triplea-game/triplea
final JScrollPane scroll = new JScrollPane(tree);
scroll.addMouseListener(mouseFocusListener);
for (final Component comp : scroll.getComponents()) {
comp.addMouseListener(mouseFocusListener);
内容来源于网络,如有侵权,请联系作者删除!