Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Java
swing component?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Jan Burse, post: 5019301"] Hi, You can attach client data to a Swing component. The methods are: public class JComponent { /** * Adds an arbitrary key/value "client property" to this component. */ public void putClientProperty(Object key, Object value); /** * Returns the value of the property with the specified key. */ public Object getClientProperty(Object key); } But you must assure that the key does not clash with a key already used internally by Swing. Easiest is to use a key that resembles in the prefix one of your package names. For example: myTable.putClientProperty("com.mycompany.mypackage.mykey", "value"); Bye [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
swing component?
Top