---
title: "swing Accumulations "
author: "sugengbin"
date: "2011-04-30T11:05:56Z"
tags: []
categories: ["编程语言"]
slug: "swing-accumulations"
draft: false
lastmod: "2011-04-30T11:05:56Z"
id: 1025370
url: "https://sugengbin.iteye.com/blog/1025370"
---

SWING设置快捷键：

btn.registerKeyboardAction(new ActionListener() {

            @Override  
            public void actionPerformed(ActionEvent e) {  
                JOptionPane.showMessageDialog(null, "hello world");  
            }  
        }, KeyStroke.getKeyStroke(KeyEvent.VK\_F10, InputEvent.CTRL\_DOWN\_MASK), JComponent.WHEN\_IN\_FOCUSED\_WINDOW);  
\---  
红色是组合键,推荐用一下CTRL 或者 SHIFT,不用就用0代替\[InputEvent.CTRL\_DOWN\_MASK],  
蓝色一定要,说明本窗口激活时,这对快捷键才有用.

 

swing论坛

[http://www.iteye.com/forums/tag/Swing](http://www.iteye.com/forums/tag/Swing)

 

开源主页：

[http://www.open-open.com/index.htm](http://www.open-open.com/index.htm)[](http://www.open-open.com/open164161.htm)

 

图像处理所用到的重要类：

[http://hi.baidu.com/%B7%E7%D2%E0%D9%E2/blog/item/cdd6a8a6bd802b99d04358d0.html](http://hi.baidu.com/%B7%E7%D2%E0%D9%E2/blog/item/cdd6a8a6bd802b99d04358d0.html)

 

swing高手：民工甲：

[http://joshuaxiao.iteye.com/](http://joshuaxiao.iteye.com/)

[http://www.blogjava.net/chensiyu04/category/31607.html](http://www.blogjava.net/chensiyu04/category/31607.html)

 

 

制作类似QQ的一些东西：头像闪动，分页面板，自动隐藏，自动离线，圆角界面

[http://blog.csdn.net/song0394](http://blog.csdn.net/song0394)

qq风格的JTextFie

[http://iui.iteye.com/blog/592032](http://iui.iteye.com/blog/592032)

 

输入框未输入时，显示默认值，当鼠标点击这个输入框时默认值消失（**html**）

&lt;ww:textfield name="searchresource" size="5" onfocus="this.value=''" value="资源搜索"/&gt;

  通过使用onfocus="this.value=''"，对这个效果进行设定

 

圆角图片的制作网站：

[http://www.roundpic.com/](http://www.roundpic.com/)

 

设置swing的lookandfeel：

[http://xhmder.iteye.com/blog/688874](http://xhmder.iteye.com/blog/688874)

[http://hi.baidu.com/lylegend13/blog/item/4fc6e5030941d7703812bb4e.html/cmtid/5ee3daea3e6929dcd439c968](http://hi.baidu.com/lylegend13/blog/item/4fc6e5030941d7703812bb4e.html/cmtid/5ee3daea3e6929dcd439c968)

com.seaglasslookandfeel.SeaGlassLookAndFeel

 

com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel

 

ch.randelshofer.quaqua.QuaquaLookAndFeel

 

**TWaver主页：[http://twaver.servasoft.com/](http://twaver.servasoft.com/)**

 

Swing渐变生成工具  [http://www.iteye.com/topic/859257](http://www.iteye.com/topic/859257)

 

JLabel文字魔法：[http://www.pcjx.com/Java/SwingAwtApplet/42349.html](http://www.pcjx.com/Java/SwingAwtApplet/42349.html)

 

 paint, update, paintComponent, repaint

[http://lengjianxxxx.blog.163.com/blog/static/8118840200771481141411/](http://lengjianxxxx.blog.163.com/blog/static/8118840200771481141411/)

[http://javapub.iteye.com/blog/763849](http://javapub.iteye.com/blog/763849)

 

Java开发的图片处理软件ZakiPhoto

[http://javapub.iteye.com/blog/850924](http://javapub.iteye.com/blog/850924)

 

字体设置，包括大小，颜色，加粗，下划线，对齐，斜体的设置

[http://emy.iteye.com/blog/188913](http://emy.iteye.com/blog/188913)

 

含动画的java气泡提示效果，右下角消息提示窗

[http://noobjava.iteye.com/blog/739785](http://noobjava.iteye.com/blog/739785)

 

Swing Border

[http://edu.codepub.com/2010/1203/27682.php](http://edu.codepub.com/2010/1203/27682.php)

 

文本自动完成工具

[http://univasity.iteye.com/blog/786593](http://univasity.iteye.com/blog/786593)

 

改变JSplitPane对象的颜色

[http://blog.sina.com.cn/s/blog\_538f063b0100fbu3.html](http://blog.sina.com.cn/s/blog_538f063b0100fbu3.html)

 

自动补全提示的文本框

[http://pufan53.iteye.com/blog/755079](http://pufan53.iteye.com/blog/755079)

 

JSplitPane：[http://www.cnblogs.com/jishu/archive/2011/03/23/1992270.html](http://www.cnblogs.com/jishu/archive/2011/03/23/1992270.html)

JSplitPane中间的Divider的外观

[http://lgh3292.iteye.com/blog/321864](http://lgh3292.iteye.com/blog/321864)

重写JSplitPane的UI,设置分隔条的颜色：[http://lgh3292.iteye.com/blog/267191](http://lgh3292.iteye.com/blog/267191)

 

Swing的Api实现镜面效果：

[http://www.iteye.com/topic/866622](http://www.iteye.com/topic/866622)

[http://javapub.iteye.com/blog/781654](http://javapub.iteye.com/blog/781654)

 

JEditorPane/JTextPane常见操作（字体，颜色，字号，加粗，斜线，下划线，保存，行间距 等操作）以及HTML空格处理

[http://gh0769.iteye.com/blog/598839](http://gh0769.iteye.com/blog/598839)

 

JDK 7：半透明和任意形状的窗口

[http://developer.51cto.com/art/201006/207199\_1.htm](http://developer.51cto.com/art/201006/207199_1.htm)

[http://hi.baidu.com/shuangwhywhy/blog/item/5822503b3cdbf3f914cecb5f.html](http://hi.baidu.com/shuangwhywhy/blog/item/5822503b3cdbf3f914cecb5f.html)

 

java (Swing)的各种消息框

[http://blog.csdn.net/power\_mk/archive/2010/08/09/5799402.aspx](http://blog.csdn.net/power_mk/archive/2010/08/09/5799402.aspx)

 

ps的：用PS去除图片中文字的6个方法

[http://www.u148.net/article/486.html](http://www.u148.net/article/486.html)

 

其他的，待续。。。