I am working in a Twitter feed application using Java Swing.
is it possible for me to set custom attribute to the JEditorPane as like below
JEditorPane jep = new JEditorPane();
jep.tweetID = "222";
jep.tweetText = "Good Day...";
so that i can get these attributes directly in events associated with this JEditorPane like below
public void mouseReleased(MouseEvent e)
{
String currentTweetID = e.getSource().tweetID;
}
if this is possible, please suggest the solution.