码迷,mamicode.com
首页 > 编程语言 > 详细

Java Swing

时间:2014-05-30 11:18:29      阅读:284      评论:0      收藏:0      [点我收藏+]

标签:c   style   class   blog   code   java   

  1. Global cursor: To change the cursor in a application wide fashion, you have to access the Glass Pane and set its cursor, and then make the glass pane visible – otherwise, it has no effect at all:
    bubuko.com,布布扣
    int cursorType = Cursor.S_RESIZE_CURSOR;
    Component glassPane = ((RootPaneContainer)someComponent.getTopLevelAncestor()).getGlassPane();
    glassPane.setCursor(Cursor.getPredefinedCursor(cursorType));
    glassPane.setVisible(cursorType != Cursor.DEFAULT_CURSOR);
    bubuko.com,布布扣

    done.

  2. e
  3. e
  4. e
  5. e
  6. e
  7. e
  8. e
  9. e
  10. e
  11. e

Java Swing,布布扣,bubuko.com

Java Swing

标签:c   style   class   blog   code   java   

原文地址:http://www.cnblogs.com/wade-case/p/3756279.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!