<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Sharing a JTextField: what is the class for the shared model?"]]></title>
		<link>http://forums.terracotta.org/forums/posts/list/5.page</link>
		<description><![CDATA[Latest messages posted in the topic "Sharing a JTextField: what is the class for the shared model?"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Sharing a JTextField: what is the class for the shared model?</title>
				<description><![CDATA[ Similarly to post <a href='http://forums.terracotta.org/forums/posts/list/1045.page' target='_new' rel="nofollow">http://forums.terracotta.org/forums/posts/list/1045.page</a> for a JCheckBox, I am now trying to share a JTextField across clustered Terracotta client GUIs.  I tried to use javax.swing.text.PlainDocument as the shared model defined in ROOT similar to how the JCheckBox sample worked, but I am stuck with errors arond javax.swing.text.AbstractDocument not being non-portable.  I tried the Ecilpse built-in "helper" features of the debugger to attempt to add locks and so on, but I cannot get it working.

Anyone has sample code for this?  I am building a PoC and want to showcase this.  I know that my issue is Swing lack of knowledge, but I cannot help that right now.  :)

Thanks,
elf]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/1053.page#6410</guid>
				<link>http://forums.terracotta.org/forums/posts/list/1053.page#6410</link>
				<pubDate><![CDATA[Tue, 13 May 2008 16:28:29]]> GMT</pubDate>
				<author><![CDATA[ eluzcand]]></author>
			</item>
			<item>
				<title>Re:Sharing a JTextField: what is the class for the shared model?</title>
				<description><![CDATA[ Instead of turning PlainDocument as root, which would drag an entire tree of classes with it (including classes that might not be TC portable at all/yet) it would be simpler in this case if create your own application's model that could be observed or that could send out notifications to update the model that your view uses.

I would suggest looking at the sample application generated by the pojo archetype <a href='http://forge.terracotta.org/releases/projects/pojo-archetype' target='_new' rel="nofollow">http://forge.terracotta.org/releases/projects/pojo-archetype</a> to accomplish this. 

You will need to have Maven 2.0 installed - I've attached an archive of the sample app.



]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/1053.page#6420</guid>
				<link>http://forums.terracotta.org/forums/posts/list/1053.page#6420</link>
				<pubDate><![CDATA[Wed, 14 May 2008 12:12:37]]> GMT</pubDate>
				<author><![CDATA[ jgalang]]></author>
			</item>
			<item>
				<title>Re:Sharing a JTextField: what is the class for the shared model?</title>
				<description><![CDATA[ Find attached an update to the CheckBoxTest Eclipse project that adds a new TextField sample that adapts the TextField's document to a SharedString that is shared.
]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/1053.page#6423</guid>
				<link>http://forums.terracotta.org/forums/posts/list/1053.page#6423</link>
				<pubDate><![CDATA[Wed, 14 May 2008 16:06:48]]> GMT</pubDate>
				<author><![CDATA[ gkeim]]></author>
			</item>
			<item>
				<title>Re:Sharing a JTextField: what is the class for the shared model?</title>
				<description><![CDATA[ Thanks for the replies and examples.  I understand some of my choices now!]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/1053.page#6447</guid>
				<link>http://forums.terracotta.org/forums/posts/list/1053.page#6447</link>
				<pubDate><![CDATA[Fri, 16 May 2008 06:51:43]]> GMT</pubDate>
				<author><![CDATA[ eluzcand]]></author>
			</item>
	</channel>
</rss>