package Ġde . k itchen list . view Ċ Ċ import Ġjavafx . event . ActionEvent Ċ import Ġjavafx . f xml . FXML Ċ import Ġjavafx . f xml . Initial izable Ċ import Ġjavafx . scene . Scene Ċ import Ġjavafx . scene . input . KeyEvent Ċ import Ġjavafx . scene . layout . V Box Ċ import Ġjavafx . stage . Modal ity Ċ import Ġjavafx . stage . Stage Ċ import Ġjavafx . stage . Stage Style Ċ import Ġorg . controls fx . control . text field . Custom TextField Ċ Ċ import Ġjava . net . URL Ċ import Ġjava . util . ResourceBundle Ċ Ċ class ĠNew Person Controller Ġ: ĠInitial izable Ġ{ Ċ ĉ private Ġval Ġdialog Ġ= ĠStage ( Stage Style . UT ILITY ) ĊĊ ĉ @ FXML Ċ ĉ private Ġlateinit Ġvar Ġroot : ĠV Box ĊĊ ĉ @ FXML Ċ ĉ private Ġlateinit Ġvar ĠfirstName Field : ĠCustom TextField ĊĊ ĉ @ FXML Ċ ĉ private Ġlateinit Ġvar ĠlastName Field : ĠCustom TextField ĊĊ ĉ @ FXML Ċ ĉ private Ġlateinit Ġvar Ġbalance Field : ĠCustom TextField ĊĊ ĉ @ FXML Ċ ĉ fun Ġcancel ( event : ĠAction Event ) Ġ{ Ċĉ ĉ dialog . close () Ċ ĉ } ĊĊ ĉ @ FXML Ċ ĉ fun Ġcreate Person ( event : ĠAction Event ) Ġ{ ĊĊ ĉ } ĊĊ ĉ @ FXML Ċ ĉ fun Ġupdate ( event : ĠKeyEvent ) Ġ{ ĊĊ ĉ } ĊĊ ĉ internal Ġfun Ġshow And Wait () Ġ{ Ċĉ ĉ dialog . show And Wait () Ċ ĉ } ĊĊ ĉ override Ġfun Ġinitialize ( location : ĠURL , Ġresources : ĠResource Bundle ) Ġ{ Ċĉ ĉ dialog . title Ġ= Ġresources . getString (" title ") Ċĉ ĉ dialog . init Modal ity ( Modal ity . APPLICATION _ MOD AL ) Ċĉ ĉ dialog . scene Ġ= ĠScene ( root ) Ċ ĉ } Ċ } Ċ