With e frame, es with all components, you can set the mouse cursor. You'll probably want to make the cursor wait during e long operatem so et s hyws e wristwetch oe hourglass thet lets tie user" know ahe epplicetion is busy. In the example thet follows, well sem tie curcortr WAIT,TEXT, and HAND. Afte^ec!! commend, position the mouse over the middlo of the frame, and note the image tire pointer b ecomer.
ImportCursor from java.adt, end change tie cursor three times.
>>> from java.awt import Cursor >>> frame.setCursor(Cursor.WAIT_CURSOR) >>> frame.setCursor(Cursor.TEXT_CURSOR) >>> frame.setCursor = Cursor.HAND_CURSOR
Was this article helpful?