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.open-open.com/index.htm
图像处理所用到的重要类:
http://hi.baidu.com/%B7%E7%D2%E0%D9%E2/blog/item/cdd6a8a6bd802b99d04358d0.html
swing高手:民工甲:
http://www.blogjava.net/chensiyu04/category/31607.html
制作类似QQ的一些东西:头像闪动,分页面板,自动隐藏,自动离线,圆角界面
qq风格的JTextFie
http://iui.iteye.com/blog/592032
输入框未输入时,显示默认值,当鼠标点击这个输入框时默认值消失(html)
<ww:textfield name="searchresource" size="5" οnfοcus="this.value=''" value="资源搜索"/>
通过使用οnfοcus="this.value=''",对这个效果进行设定
圆角图片的制作网站:
设置swing的lookandfeel:
http://xhmder.iteye.com/blog/688874
com.seaglasslookandfeel.SeaGlassLookAndFeel
com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel
ch.randelshofer.quaqua.QuaquaLookAndFeel
TWaver主页:http://twaver.servasoft.com/
Swing渐变生成工具 http://www.iteye.com/topic/859257
JLabel文字魔法:http://www.pcjx.com/Java/SwingAwtApplet/42349.html
paint, update, paintComponent, repaint
http://lengjianxxxx.blog.163.com/blog/static/8118840200771481141411/
http://javapub.iteye.com/blog/763849
Java开发的图片处理软件ZakiPhoto
http://javapub.iteye.com/blog/850924
字体设置,包括大小,颜色,加粗,下划线,对齐,斜体的设置
http://emy.iteye.com/blog/188913
含动画的java气泡提示效果,右下角消息提示窗
http://noobjava.iteye.com/blog/739785
Swing Border
http://edu.codepub.com/2010/1203/27682.php
文本自动完成工具
http://univasity.iteye.com/blog/786593
改变JSplitPane对象的颜色
http://blog.sina.com.cn/s/blog_538f063b0100fbu3.html
自动补全提示的文本框
http://pufan53.iteye.com/blog/755079
JSplitPane:http://www.cnblogs.com/jishu/archive/2011/03/23/1992270.html
JSplitPane中间的Divider的外观
http://lgh3292.iteye.com/blog/321864
重写JSplitPane的UI,设置分隔条的颜色:http://lgh3292.iteye.com/blog/267191
Swing的Api实现镜面效果:
http://www.iteye.com/topic/866622
http://javapub.iteye.com/blog/781654
JEditorPane/JTextPane常见操作(字体,颜色,字号,加粗,斜线,下划线,保存,行间距 等操作)以及HTML空格处理
http://gh0769.iteye.com/blog/598839
JDK 7:半透明和任意形状的窗口
http://developer.51cto.com/art/201006/207199_1.htm
http://hi.baidu.com/shuangwhywhy/blog/item/5822503b3cdbf3f914cecb5f.html
java (Swing)的各种消息框
http://blog.csdn.net/power_mk/archive/2010/08/09/5799402.aspx
ps的:用PS去除图片中文字的6个方法
http://www.u148.net/article/486.html
其他的,待续。。。