<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Some more JavaFX surprises</title>
	<atom:link href="http://chaoticjava.com/posts/some-more-javafx-surprises/feed/" rel="self" type="application/rss+xml" />
	<link>http://chaoticjava.com/posts/some-more-javafx-surprises/</link>
	<description>The internet, design patterns, frameworks and Java</description>
	<lastBuildDate>Sat, 05 Nov 2011 18:39:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: jj</title>
		<link>http://chaoticjava.com/posts/some-more-javafx-surprises/comment-page-1/#comment-13073</link>
		<dc:creator>jj</dc:creator>
		<pubDate>Sat, 13 Oct 2007 19:08:11 +0000</pubDate>
		<guid isPermaLink="false">http://chaoticjava.com/posts/some-more-javafx-surprises/#comment-13073</guid>
		<description>okay THANKX.
Now I can dynamically create Rect or simiular Object onto a Canvas.
I have to Buttons one for Create and the other for delete. I did all Object in a List or Array. The List is full with objects which inherit from compositeNode.
At Least I bind the hole list with select or foreach to the content.</description>
		<content:encoded><![CDATA[<p>okay THANKX.<br />
Now I can dynamically create Rect or simiular Object onto a Canvas.<br />
I have to Buttons one for Create and the other for delete. I did all Object in a List or Array. The List is full with objects which inherit from compositeNode.<br />
At Least I bind the hole list with select or foreach to the content.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avah</title>
		<link>http://chaoticjava.com/posts/some-more-javafx-surprises/comment-page-1/#comment-13055</link>
		<dc:creator>Avah</dc:creator>
		<pubDate>Sat, 13 Oct 2007 12:03:25 +0000</pubDate>
		<guid isPermaLink="false">http://chaoticjava.com/posts/some-more-javafx-surprises/#comment-13055</guid>
		<description>jj: Elements like buttons do not have a sense of &quot;canvas&quot; - it&#039;s only Nodes (like CompositeNode) that have it. 

A composite node &lt;i&gt;can&lt;/i&gt; reach to its parent canvas using the &lt;code&gt;getCanvas()&lt;/code&gt; method, and then it should be able to access the &lt;code&gt;content&lt;/code&gt; attribute. I suppose that if you create a function in a composite node that does something with &lt;code&gt;getCanvas().content&lt;/code&gt;, and then assign the function to &lt;code&gt;Button&lt;/code&gt;&#039;s &lt;code&gt;action&lt;/code&gt; attribute (for example), it might work - but I haven&#039;t tried it. See if it works and let me know!</description>
		<content:encoded><![CDATA[<p>jj: Elements like buttons do not have a sense of &#8220;canvas&#8221; &#8211; it&#8217;s only Nodes (like CompositeNode) that have it. </p>
<p>A composite node <i>can</i> reach to its parent canvas using the <code>getCanvas()</code> method, and then it should be able to access the <code>content</code> attribute. I suppose that if you create a function in a composite node that does something with <code>getCanvas().content</code>, and then assign the function to <code>Button</code>&#8216;s <code>action</code> attribute (for example), it might work &#8211; but I haven&#8217;t tried it. See if it works and let me know!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jj</title>
		<link>http://chaoticjava.com/posts/some-more-javafx-surprises/comment-page-1/#comment-13053</link>
		<dc:creator>jj</dc:creator>
		<pubDate>Sat, 13 Oct 2007 11:47:28 +0000</pubDate>
		<guid isPermaLink="false">http://chaoticjava.com/posts/some-more-javafx-surprises/#comment-13053</guid>
		<description>Sorry. I try it again.
The only thing I want is to generate dynamically Objects. It doesn&#039;t matter if this is a Rect or something like that. 
And the question was: I have a Canvas with some Object - and I want to add new Object (Views, Textfield, Rect) to the same Canvas. Also it have to be possible to get all objects from the Canvas - so can delete them.
Hope this was better ....</description>
		<content:encoded><![CDATA[<p>Sorry. I try it again.<br />
The only thing I want is to generate dynamically Objects. It doesn&#8217;t matter if this is a Rect or something like that.<br />
And the question was: I have a Canvas with some Object &#8211; and I want to add new Object (Views, Textfield, Rect) to the same Canvas. Also it have to be possible to get all objects from the Canvas &#8211; so can delete them.<br />
Hope this was better &#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avah</title>
		<link>http://chaoticjava.com/posts/some-more-javafx-surprises/comment-page-1/#comment-12979</link>
		<dc:creator>Avah</dc:creator>
		<pubDate>Fri, 12 Oct 2007 19:35:57 +0000</pubDate>
		<guid isPermaLink="false">http://chaoticjava.com/posts/some-more-javafx-surprises/#comment-12979</guid>
		<description>jj: I don&#039;t understand your question... Are you looking to bind a rect to a button, or to have the rect as the button&#039;s content?</description>
		<content:encoded><![CDATA[<p>jj: I don&#8217;t understand your question&#8230; Are you looking to bind a rect to a button, or to have the rect as the button&#8217;s content?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jj</title>
		<link>http://chaoticjava.com/posts/some-more-javafx-surprises/comment-page-1/#comment-12939</link>
		<dc:creator>jj</dc:creator>
		<pubDate>Fri, 12 Oct 2007 12:19:54 +0000</pubDate>
		<guid isPermaLink="false">http://chaoticjava.com/posts/some-more-javafx-surprises/#comment-12939</guid>
		<description>Hi,
cool I like JavaFx.
One question for you is it also possible to add a Rect dynamical with a Button or something? 
pseudocode:
button{
canvas.getContent().add(myRect)
}
Is this possible?</description>
		<content:encoded><![CDATA[<p>Hi,<br />
cool I like JavaFx.<br />
One question for you is it also possible to add a Rect dynamical with a Button or something?<br />
pseudocode:<br />
button{<br />
canvas.getContent().add(myRect)<br />
}<br />
Is this possible?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: just me</title>
		<link>http://chaoticjava.com/posts/some-more-javafx-surprises/comment-page-1/#comment-6217</link>
		<dc:creator>just me</dc:creator>
		<pubDate>Fri, 22 Jun 2007 13:04:00 +0000</pubDate>
		<guid isPermaLink="false">http://chaoticjava.com/posts/some-more-javafx-surprises/#comment-6217</guid>
		<description>I don&#039;t know why is wrong, but try to test it! It just dosen&#039;t work...
I have test it in NetBeans 5.5 and here it is the error:

file:/C:/JavaApplications/JavaFXSamples/build/classes/FXSample.fx:7: Encountered &quot;{&quot; at line 7, column 8.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know why is wrong, but try to test it! It just dosen&#8217;t work&#8230;<br />
I have test it in NetBeans 5.5 and here it is the error:</p>
<p>file:/C:/JavaApplications/JavaFXSamples/build/classes/FXSample.fx:7: Encountered &#8220;{&#8221; at line 7, column 8.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: just me</title>
		<link>http://chaoticjava.com/posts/some-more-javafx-surprises/comment-page-1/#comment-6216</link>
		<dc:creator>just me</dc:creator>
		<pubDate>Fri, 22 Jun 2007 13:03:40 +0000</pubDate>
		<guid isPermaLink="false">http://chaoticjava.com/posts/some-more-javafx-surprises/#comment-6216</guid>
		<description>I don&#039;t know why is wrong, but try to tst it! It just dosen&#039;t work...
I have test it in NetBeans 5.5 and here it is the error:

file:/C:/JavaApplications/JavaFXSamples/build/classes/FXSample.fx:7: Encountered &quot;{&quot; at line 7, column 8.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know why is wrong, but try to tst it! It just dosen&#8217;t work&#8230;<br />
I have test it in NetBeans 5.5 and here it is the error:</p>
<p>file:/C:/JavaApplications/JavaFXSamples/build/classes/FXSample.fx:7: Encountered &#8220;{&#8221; at line 7, column 8.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avah</title>
		<link>http://chaoticjava.com/posts/some-more-javafx-surprises/comment-page-1/#comment-6097</link>
		<dc:creator>Avah</dc:creator>
		<pubDate>Fri, 15 Jun 2007 11:12:29 +0000</pubDate>
		<guid isPermaLink="false">http://chaoticjava.com/posts/some-more-javafx-surprises/#comment-6097</guid>
		<description>Why is it wrong to have the additional brackets?</description>
		<content:encoded><![CDATA[<p>Why is it wrong to have the additional brackets?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: just me</title>
		<link>http://chaoticjava.com/posts/some-more-javafx-surprises/comment-page-1/#comment-6096</link>
		<dc:creator>just me</dc:creator>
		<pubDate>Fri, 15 Jun 2007 08:55:18 +0000</pubDate>
		<guid isPermaLink="false">http://chaoticjava.com/posts/some-more-javafx-surprises/#comment-6096</guid>
		<description>Wrong:

import java.lang.*;
import javafx.ui.*;
import javafx.ui.canvas.*;

Canvas {
    content: bind foreach (i in [1..10], j in [1..10]) 
       { Text { content: &quot;{i*j}&quot; x:i * 30 y:j * 30}   }
}

Good...:

import java.lang.*;
import javafx.ui.*;
import javafx.ui.canvas.*;

Canvas {
    content: bind foreach (i in [1..10], j in [1..10]) 
        Text { content: &quot;{i*j}&quot; x:i * 30 y:j * 30}   
}</description>
		<content:encoded><![CDATA[<p>Wrong:</p>
<p>import java.lang.*;<br />
import javafx.ui.*;<br />
import javafx.ui.canvas.*;</p>
<p>Canvas {<br />
    content: bind foreach (i in [1..10], j in [1..10])<br />
       { Text { content: &#8220;{i*j}&#8221; x:i * 30 y:j * 30}   }<br />
}</p>
<p>Good&#8230;:</p>
<p>import java.lang.*;<br />
import javafx.ui.*;<br />
import javafx.ui.canvas.*;</p>
<p>Canvas {<br />
    content: bind foreach (i in [1..10], j in [1..10])<br />
        Text { content: &#8220;{i*j}&#8221; x:i * 30 y:j * 30}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: just me</title>
		<link>http://chaoticjava.com/posts/some-more-javafx-surprises/comment-page-1/#comment-6094</link>
		<dc:creator>just me</dc:creator>
		<pubDate>Fri, 15 Jun 2007 08:48:33 +0000</pubDate>
		<guid isPermaLink="false">http://chaoticjava.com/posts/some-more-javafx-surprises/#comment-6094</guid>
		<description>Are you sure that this work (look at line 7):

import java.lang.*;
import javafx.ui.*;
import javafx.ui.canvas.*;

Canvas {
    content: bind foreach (i in [1..10], j in [1..10]) {
        Text { content: &quot;{i*j}&quot; x:i * 30 y:j * 30}
    }
}</description>
		<content:encoded><![CDATA[<p>Are you sure that this work (look at line 7):</p>
<p>import java.lang.*;<br />
import javafx.ui.*;<br />
import javafx.ui.canvas.*;</p>
<p>Canvas {<br />
    content: bind foreach (i in [1..10], j in [1..10]) {<br />
        Text { content: &#8220;{i*j}&#8221; x:i * 30 y:j * 30}<br />
    }<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

