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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -