This discussion is archived
2 Replies Latest reply: Jan 29, 2013 2:13 PM by jsmith RSS

How to fetch data from database in javafx 2.2 table which is editable.

tanvir ahmed Newbie
Currently Being Moderated
Dears!

I want to fetch data from database in javafx 2.2 tableformat with jdbc , which is also editable and i can add more records in this table also.

Can anybody help me
  • 1. Re: How to fetch data from database in javafx 2.2 table which is editable.
    805536 Journeyer
    Currently Being Moderated
    [url http://netbeans.org/kb/69/javafx/database-client.html]I can vaguely recall some sort of JavaFX database connectivity feature, I'm not sure if it's valid anymore. There is a good chance you will have to write your own. There are several blogs describing other peoples' work. You could probably use them as a reference.
  • 2. Re: How to fetch data from database in javafx 2.2 table which is editable.
    jsmith Guru
    Currently Being Moderated
    I can vaguely recall some sort of JavaFX database connectivity feature, I'm not sure if it's valid anymore.
    The link is based on JavaFX Composer which only applied to NetBeans 6.9 and JavaFX 1.x (both of which are now dead techs).
    There is a good chance you will have to write your own. There are several blogs describing other peoples' work. You could probably use them as a reference.
    Here is Narayan's basic [url http://blog.ngopal.com.np/2011/10/19/dyanmic-tableview-data-from-database/] tutorial for displaying data from a database in a TableView, you'll need to look elsewhere for the editing portion.

    The [url http://docs.oracle.com/javafx/2/ui_controls/table-view.htm]JavaFX TableView tutorial gives info about how to handle edits in a TableView, but you will need to tie the updates back to the database yourself.

    It is possible that [url http://www.javafxdata.org/]DataFX may provide some facilities to help support you.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points