作者Atenp (偶数传奇)
看板java
标题[问题] 滑鼠 setCursor 的问题
时间Wed May 13 21:06:28 2009
如果我在一个JFrame上
setEnabled 一个面积比较小的 progress Bar
有办法在整个 JFrame 里
让我的滑鼠变成等待图形嘛?
好像只能对 progress bar 做 setCursor 会有用
(只有在progress bar里面才会变成漏斗)
对 JFrame 好像无效, override掉 isVisible(), isDisplayable(), isEnabled()
好像也无效耶
public void setCursor(Cursor cursor)
Sets the cursor image to the specified cursor. This cursor image is
displayed when the contains method for this component returns true for the
current cursor location, and this Component is visible, displayable, and
enabled. Setting the cursor of a Container causes that cursor to be displayed
within all of the container's subcomponents, except for those that have a
non-null cursor.
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 118.169.184.80
※ 编辑: Atenp 来自: 118.169.184.80 (05/13 21:07)
1F:推 undeadj:在等待的时候,直接对JFrame做mouse设定 05/14 17:25