Java Swing

  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:
    int cursorType = Cursor.S_RESIZE_CURSOR;
    Component glassPane = ((RootPaneContainer)someComponent.getTopLevelAncestor()).getGlassPane();
    glassPane.setCursor(Cursor.getPredefinedCursor(cursorType));
    glassPane.setVisible(cursorType != Cursor.DEFAULT_CURSOR);

    done.

  2. Free icons: http://www.iconarchive.com/
  3. e
  4. e
  5. e
  6. e
  7. e
  8. e
  9. e
  10. e
  11. e
posted @ 2014-05-28 01:39  wxwcase  阅读(171)  评论(0编辑  收藏  举报