本文整理了Java中javax.swing.JScrollPane.setCursor()
方法的一些代码示例,展示了JScrollPane.setCursor()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JScrollPane.setCursor()
方法的具体详情如下:
包路径:javax.swing.JScrollPane
类名称:JScrollPane
方法名:setCursor
暂无
代码示例来源:origin: magefree/mage
jSplitPane1.setResizeWeight(0.5);
jScrollPane1.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
jScrollPane1.setPreferredSize(new java.awt.Dimension(400, 100));
代码示例来源:origin: magefree/mage
jScrollPaneSystem.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
jScrollPaneSystem.setFocusable(false);
jScrollPaneSystem.setOpaque(false);
代码示例来源:origin: stackoverflow.com
final JScrollPane jsp = new JScrollPane(jt);
jsp.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
//DO SOMETHING
jsp.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw
/**
* Constructor for the FloatingTextArea object
*/
public FloatingTextArea() {
textArea = new JTextArea();
textArea.setWrapStyleWord(true);
textArea.setLineWrap(true);
editScrollContainer = new JScrollPane(textArea,
JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
editScrollContainer.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
editScrollContainer.setBorder(BorderFactory.createLineBorder(Color.black));
}
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction
@Override
public void setCursor(Cursor aCursor) {
super.setCursor(aCursor);
}
代码示例来源:origin: violetumleditor/violetumleditor
@Override
public void onMouseReleased(MouseEvent event)
{
WorkspacePanel workspacePanel = this.workspace.getAWTComponent();
JScrollPane scrollableEditorPart = workspacePanel.getScrollableEditorPart();
scrollableEditorPart.setCursor(this.initialCursor);
this.initialMousePoint = null;
this.initialHorizontalScrollBarValue = -1;
this.initialVerticalScrollBarValue = -1;
this.isReadyForDragging = false;
this.initialCursor = null;
}
代码示例来源:origin: ontop/ontop
pnlEmptiesSummary.add(jScrollConcepts);
jScrollRoles.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
pnlEmptiesSummary.add(jScrollRoles);
代码示例来源:origin: lbalazscs/Pixelitor
/**
* Adds the "hand tool"-like behavior to the given scroll pane
*/
public static void addBehavior(JScrollPane scrollPane) {
scrollPane.setCursor(Cursors.HAND);
HandToolSupport support = new HandToolSupport();
JViewport viewport = scrollPane.getViewport();
Component panel = viewport.getView();
panel.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
support.mousePressed(e, viewport);
}
});
panel.addMouseMotionListener(new MouseMotionAdapter() {
@Override
public void mouseDragged(MouseEvent e) {
support.mouseDragged(e, viewport);
}
});
}
}
代码示例来源:origin: violetumleditor/violetumleditor
this.initialCursor = scrollableEditorPart.getCursor();
scrollableEditorPart.setCursor(this.dragCursor);
代码示例来源:origin: net.sf.mmax2/mmax2
public final void requestRefreshDisplay()
{
setCursor(new Cursor(Cursor.WAIT_CURSOR));
currentScrollPane.setCursor(new Cursor(Cursor.WAIT_CURSOR));
currentTextPane.setCursor(new Cursor(Cursor.WAIT_CURSOR));
getCurrentDiscourse().getCurrentMarkableChart().rerender();
setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
currentScrollPane.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
currentTextPane.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
}
内容来源于网络,如有侵权,请联系作者删除!