Results 1 to 2 of 2
- 02-14-2013, 01:59 PM #1
Member
- Join Date
- Feb 2013
- Posts
- 3
- Rep Power
- 0
how to refresh data on the tab in javaFX
i have created frames using splitPane in javaFX and in the first frame i have created a tab
in the created tab i have created one text field and one button.Text field takes the path and searches for the result on clicking the button.
and the results will be displayed in the second frame
i am getting the results but for the next search i am facing a problem the next searched data is overlapping with the previous searched data which was already displayed on the tab
so any body please help how to refresh the tab and to display the newly searched data
thanks
- 05-17-2013, 11:16 PM #2
Senior Member
- Join Date
- Apr 2012
- Posts
- 127
- Rep Power
- 0
Re: how to refresh data on the tab in javaFX
I know this post is old, but is does not have an answer and there are a lot of views.
Have you tried hiding then calling .show() again on your scene or however you have encapsulated your tabs? This is a dirty hack that may not work, but my theory is to get it to redraw then you show it again.
In my experience, stuff works similar to swing where you have your actions being performed in some thread outside of your GUI's thread to prevent locking. This makes it more complex to update data across threads, so design of your application becomes important here. You will need to construct your data model to be thread safe so that it can be updated by any thread without issue.
Post your code so other can see and learn from what you are trying to do. JavaFX is quite new to the Java community as a whole and is not very well accepted just yet (because it's so new), so any good solutions we can find as a community are great!
Similar Threads
-
Refresh Jtable after data has been changed
By kevinn205 in forum New To JavaReplies: 7Last Post: 11-17-2011, 05:25 PM -
Refresh JTable data
By pink123 in forum AWT / SwingReplies: 1Last Post: 03-31-2011, 06:18 PM -
JavaFX Script and JavaFX Mobile
By levent in forum Java SoftwareReplies: 1Last Post: 01-27-2010, 04:48 PM -
Refresh window to get new data from database
By abelah in forum Threads and SynchronizationReplies: 7Last Post: 11-11-2008, 03:17 PM -
how to refresh data of the JTable
By paty in forum JDBCReplies: 3Last Post: 08-17-2008, 12:01 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks