Enhanced ChatInput

Hi,

I’'m writing a Spark plugin that enables features I already mentioned in this forum (http://www.jivesoftware.org/community/message.jspa?messageID=115359#115359).

Next, I consider enhanced chat input that allows a user to easily reference things (e.g. users, files) within a message. The idea is that if the user types a certain key phrase, e.g. “person:”, that a list of buddies from his buddylist pops up and depending on continued typing a person is selected by auto completion.

Does anyone have some best practices for implementing such or similar features for JTextComponents, or Spark’'s ChatInputEditor?

Cheers!