Java Reference
In-Depth Information
Source for the Sudoku Application
The source code for JavaFX Sudoku can also be found at http://jfxbook.com/
Sudoku/. Developed with the NetBeans Integrated Development Environment,
the source comes bundled with project metadata to facilitate seamless integration
into NetBeans.
Packages
Table 13.1 lists and briefly describes the packages that make up the JavaFX
Sudoku application. It incorporates both JavaFX and Java source, plus images
that are used as part of the overall presentation.
Ta b l e 1 3 . 1
Packages in the Sudoku Application
Package
Description
sudoku.*
All JavaFX source files reside under this package. For
a description of each of the files contained within,
consult Table 13.2.
As part of the overall presentation, the Sudoku appli-
cation is responsible for displaying a large number of
images at any point in time during execution. All
images are located in this directory and include things
like icons, backgrounds, numbers, and spaces.
sudoku.images.*
net.sourceforge.playsudoku.*
This package is public domain software from source-
forge.net and is written in Java. It is used to generate
and solve new Sudoku puzzles. It demonstrates soft-
ware reuse and the easy integration of Java compo-
nents into a JavaFX application.
JavaFX Source Files
The JavaFX source files that comprise the sudoku package (referenced in Table
13.1) are, in general, divided into two types of files. Those directly involved with
the application interface have public classes that extend the CustomNode class
and are suffixed with Node (e.g., Board Node .fx , IconButton Node .fx) . Source
files without the Node suffix do not extend the CustomNode class and are
involved more with the logic behind running the Sudoku application. Table 13.2
lists and describes the sudoku package files.
 
 
 
 
Search WWH ::




Custom Search