So, first of all, my code is based on the accepted answer in this thread.
I'm trying to create a tableview from a database, and this tableview should be populated dynamically based on what data the user asks for. While that's working so far, my problem is that all values gathered from the database are interpreted as strings in java, but I need their actual values.
The reason for this is that the built-in sorting mechanism of the javafx tableview sorts all numbers as strings because their type is converted to string when populating the table.
Example: Values 921, 200, 110, 1, 2011, 1299 would be sorted as (using integer datatype) 1, 110, 200, 921, 1299, 2011 while it would be sorted as 1, 110, 1299, 200, 2011, 921 using string datatype.
I'm quite new to generics and java in general, and hope someone here might be able to help me out.
Basically: whenever I read a value from the database, I need to insert the value in the tableview with its actual datatype, rather than it being converted to string.