tag:blogger.com,1999:blog-28019847.post7443246094451652336..comments2023-10-24T15:57:58.247+05:30Comments on << Java Forever >>: Scene to Scene in JavaFXVaibhav Choudharyhttp://www.blogger.com/profile/11145353943937580111noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-28019847.post-58720934009306698822009-12-16T18:09:54.327+05:302009-12-16T18:09:54.327+05:30Hi Vaibhav,
I am developing an application for mo...Hi Vaibhav,<br /><br />I am developing an application for mobile. I have to display a table with different data. When user clicks on button (for ex: "vegetarian") the table have to show vegetarian items in the next scene. In the same way if he chooses Non-Vegetarian, the table have to show Non-Veg items in the next scene. But the problem is the scene is not getting refreshes with latest data, it shows the previous data only. How to refresh the scene to display latest data.Siva Prasadhttps://www.blogger.com/profile/11664203372025286892noreply@blogger.comtag:blogger.com,1999:blog-28019847.post-782854347916783562009-07-16T08:36:11.091+05:302009-07-16T08:36:11.091+05:30Yey, Thanks for this. :) I've been looking for...Yey, Thanks for this. :) I've been looking for something like this code in my project. ;) <br /><br />Thanks again!rururuhttps://www.blogger.com/profile/00385766822425943828noreply@blogger.comtag:blogger.com,1999:blog-28019847.post-81832039956792741632009-04-17T19:13:00.000+05:302009-04-17T19:13:00.000+05:30You are GREATE Vaibhav!You are GREATE Vaibhav!Anonimus!https://www.blogger.com/profile/08361998759188154860noreply@blogger.comtag:blogger.com,1999:blog-28019847.post-28856892254990568372009-03-12T09:29:00.000+05:302009-03-12T09:29:00.000+05:30yes, this looks correct :)yes, this looks correct :)Vaibhav Choudharyhttps://www.blogger.com/profile/11145353943937580111noreply@blogger.comtag:blogger.com,1999:blog-28019847.post-69536242782268919602009-03-11T20:24:00.000+05:302009-03-11T20:24:00.000+05:30Thank´s for advice.Follow a simple example import ...Thank´s for advice.<BR/><BR/>Follow a simple example <BR/><BR/>import javafx.ext.swing.SwingButton;<BR/>import javafx.ext.swing.SwingTextField;<BR/>import javafx.scene.Group;<BR/>import javafx.scene.input.MouseEvent;<BR/>import javafx.scene.Scene;<BR/>import javafx.stage.Stage;<BR/><BR/>def group1: Group = Group {<BR/> content: [<BR/> SwingTextField{<BR/> translateY: 40<BR/> text: "First"<BR/> width:300;<BR/> }<BR/> SwingButton{<BR/> text: "Show second group"<BR/> translateX: 10;<BR/> translateY: 20;<BR/> onMouseClicked: function(evt : MouseEvent){<BR/> showGroup(group2);<BR/> }<BR/> }<BR/> ]<BR/>}<BR/><BR/>def group2: Group = Group {<BR/> content: [<BR/> SwingTextField{<BR/> translateY: 10<BR/> text: "Second"<BR/> width:300;<BR/> }<BR/> SwingButton{<BR/> text: "Show first group"<BR/> translateX: 30;<BR/> translateY: 40;<BR/> onMouseClicked: function(evt : MouseEvent){<BR/> showGroup(group1);<BR/> }<BR/> }<BR/> ]<BR/>}<BR/><BR/>function showGroup(group : Group) : Void {<BR/> delete stg.scene.content;<BR/> insert group into stg.scene.content;<BR/>}<BR/><BR/>var stg = Stage {<BR/> title: "Swap groups."<BR/> width: 250<BR/> height: 280<BR/> scene: Scene{<BR/> content: [group1]<BR/> }<BR/>}Unknownhttps://www.blogger.com/profile/13839931900850884802noreply@blogger.comtag:blogger.com,1999:blog-28019847.post-13927756155531216232009-03-11T10:06:00.000+05:302009-03-11T10:06:00.000+05:30you can use a different way. that is adding and re...you can use a different way. that is adding and removing items of the window dynamically at runtime. See my physics apps here : http://blogs.sun.com/vaibhav<BR/><BR/>it will give you a idea, if you want source code please let me know.Vaibhav Choudharyhttps://www.blogger.com/profile/11145353943937580111noreply@blogger.comtag:blogger.com,1999:blog-28019847.post-81463947505427673172009-03-11T05:35:00.000+05:302009-03-11T05:35:00.000+05:30Hi,I´m developing a system that use a lot of scene...Hi,<BR/>I´m developing a system that use a lot of scenes. The scenes controller is working in a desktop mode but when is running as applet the scenes aren´t working. <BR/><BR/>This happened too with your example. <BR/><BR/>There are other persons with the same problem <BR/><BR/>http://forums.sun.com/thread.jspa?threadID=5372082&tstart=0<BR/><BR/>Do you know what is happening ?<BR/><BR/>Best regardsUnknownhttps://www.blogger.com/profile/13839931900850884802noreply@blogger.com