Results 1 to 2 of 2
  1. #1
    ranjeeth is offline Member
    Join Date
    Feb 2013
    Posts
    3
    Rep Power
    0

    Default 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

  2. #2
    SnakeDoc is offline Senior Member
    Join Date
    Apr 2012
    Posts
    129
    Rep Power
    0

    Default 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

  1. Refresh Jtable after data has been changed
    By kevinn205 in forum New To Java
    Replies: 7
    Last Post: 11-17-2011, 05:25 PM
  2. Refresh JTable data
    By pink123 in forum AWT / Swing
    Replies: 1
    Last Post: 03-31-2011, 06:18 PM
  3. JavaFX Script and JavaFX Mobile
    By levent in forum Java Software
    Replies: 1
    Last Post: 01-27-2010, 04:48 PM
  4. Refresh window to get new data from database
    By abelah in forum Threads and Synchronization
    Replies: 7
    Last Post: 11-11-2008, 03:17 PM
  5. how to refresh data of the JTable
    By paty in forum JDBC
    Replies: 3
    Last Post: 08-17-2008, 12:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •