本文整理了Java中javax.swing.JScrollPane.isWheelScrollingEnabled()
方法的一些代码示例,展示了JScrollPane.isWheelScrollingEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JScrollPane.isWheelScrollingEnabled()
方法的具体详情如下:
包路径:javax.swing.JScrollPane
类名称:JScrollPane
方法名:isWheelScrollingEnabled
暂无
代码示例来源:origin: JetBrains/jediterm
if (source instanceof JScrollPane) {
JScrollPane pane = (JScrollPane)source;
if (pane.isWheelScrollingEnabled()) {
JScrollBar bar = event.isShiftDown() ? pane.getHorizontalScrollBar() : pane.getVerticalScrollBar();
if (bar != null && bar.isVisible()) oldListener.mouseWheelMoved(event);
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf
if (scrollpane.isWheelScrollingEnabled() &&
e.getScrollAmount() != 0) {
JScrollBar toScroll = scrollpane.getVerticalScrollBar();
代码示例来源:origin: khuxtable/seaglass
public void mouseWheelMoved(MouseWheelEvent e) {
if (scrollpane.isWheelScrollingEnabled() && e.getWheelRotation() != 0) {
boolean isHorizontal = (e.getModifiersEx() & MouseWheelEvent.SHIFT_DOWN_MASK) != 0;
JScrollBar toScroll = scrollpane.getVerticalScrollBar();
代码示例来源:origin: com.synaptix/SynaptixSwing
private void mouseWheel(int scrollType, int wheelRotation, int unitsToScroll) {
if (scrollPane.isWheelScrollingEnabled() && wheelRotation != 0) {
JScrollBar toScroll = scrollPane.getVerticalScrollBar();
int direction = wheelRotation < 0 ? -1 : 1;
内容来源于网络,如有侵权,请联系作者删除!