看板 java 關於我們 聯絡資訊
如果我在一個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)
undeadj:在等待的時候,直接對JFrame做mouse設定 05/14 17:25