JavaFX Tableview

A place to discuss the implementation and style of computer programs.

Moderators: phlip, Moderators General, Prelates

User avatar
whitewater4562000
Posts: 66
Joined: Sat Aug 23, 2008 4:22 pm UTC
Location: Scotland
Contact:

JavaFX Tableview

Postby whitewater4562000 » Thu Aug 27, 2015 8:41 am UTC

Hi,

I am having problems with a tableview I'm using in that when I click add new row it erases all the content that have been entered (edited).
I am creating an itinerary and am trying to make it so the user can just edit the cells to add the content and then add a new entry if required.

Editing is fine, can tab through cells etc and are commited when tab or enter is pressed.

Hopefully I have attached images to try and show what is happening.

initial.png
Initial View

add.png
Add Record to Tableview

edited.png
Edited Cell

additional_add.png
Add a Second Record


Any help would be greatly appreciated.

User avatar
whitewater4562000
Posts: 66
Joined: Sat Aug 23, 2008 4:22 pm UTC
Location: Scotland
Contact:

Re: JavaFX Tableview

Postby whitewater4562000 » Thu Aug 27, 2015 8:44 am UTC

Posted in the wrong section how do i move to coding?

User avatar
Neil_Boekend
Posts: 3220
Joined: Fri Mar 01, 2013 6:35 am UTC
Location: Yes.

Re: JavaFX Tableview

Postby Neil_Boekend » Thu Aug 27, 2015 9:56 am UTC

You can't. Only mods and gods can. I have notified the mods.
Mikeski wrote:A "What If" update is never late. Nor is it early. It is posted precisely when it should be.

patzer's signature wrote:
flicky1991 wrote:I'm being quoted too much!

he/him/his

User avatar
whitewater4562000
Posts: 66
Joined: Sat Aug 23, 2008 4:22 pm UTC
Location: Scotland
Contact:

Re: JavaFX Tableview

Postby whitewater4562000 » Thu Aug 27, 2015 3:27 pm UTC

Problem solved.

Turns out I wasn't commit the edit once it had been completed (binding to the custom class). I assumed when the tab commit happened it did this automatically.
Oh well 3 days of my life I'll never get back.


Return to “Coding”

Who is online

Users browsing this forum: No registered users and 7 guests