java - Best way to to have GridPane with editable numbers(a la Sudoku)? [JavaFX] -
i want able edit numbers, have them readable , writable(via observer pattern).
would gridpane containing labels solution? way have now, labels aren't updated when call settext on them.
maybe kind of list backing gridview optimal, don't know how approach that(have searched already).
you can use textfield
, change css appear desired. can set textfields non editable hold initial values of suduko using
textfield.seteditable(false)
you can use following css make textfield
transparent.
.text-field { -fx-background-color: transparent ; -fx-background-insets: 0px ; }
Comments
Post a Comment