public final void putClientProperty(Object key,
Object value)Adds an arbitrary key/value "client property" to this component.
The get/putClientProperty methods provide access to a small per-instance hashtable. Callers can use get/putClientProperty to annotate components that were created by another module. For example, a layout manager might store per child constraints this way. For example: componentA.putClientProperty("to the left of", componentB);
If value is null this method will remove the property. Changes to client properties are reported with PropertyChange events. The name of the property (for the sake of PropertyChange events) is key.toString().
The clientProperty dictionary is not intended to support large scale extensions to JComponent nor should be it considered an alternative to subclassing when designing a new component.
Object value)Adds an arbitrary key/value "client property" to this component.
The get/putClientProperty methods provide access to a small per-instance hashtable. Callers can use get/putClientProperty to annotate components that were created by another module. For example, a layout manager might store per child constraints this way. For example: componentA.putClientProperty("to the left of", componentB);
If value is null this method will remove the property. Changes to client properties are reported with PropertyChange events. The name of the property (for the sake of PropertyChange events) is key.toString().
The clientProperty dictionary is not intended to support large scale extensions to JComponent nor should be it considered an alternative to subclassing when designing a new component.
解决方案 »
- HttpClient怎么实现百度搜索
- 关于 大数据量顺序进行处理机制
- 有人看过JUST JAVA2没有?
- 不要不好意思,大家来聊聊====〉socket通信到底是根据那个协议TCP还是udp.顺便问下java下如何实现Telnet
- 求助,怎么编译通不过啊
- 我在用jdk1.6时在JBUILDER2005下运行程序没有问题,但部署后出现以下问题,急
- 在使用quartz框架的时候添加CronTrigger的时候无法确定第一次执行的时间
- 关于Image和ImageIcon的问题,请大侠指教!
- 请问yuanmeng163??????????????
- 一道面试题,求解答
- 怎样下载其他网站上的Applet的Class文件?
- 什么问题编译有错
但这个方法我知道了,实验中得到的,也不知道正不正确,大致应该不差
这个方法是用来设置应用程序窗口的移动模式的,当putClientProperty("JDesktopPane.dragMode","outline")设置成这样时,窗口移动时窗口本身不动,而将有一个和窗口一样大小的边框随着鼠标移动。