Scene 1 with its Scene1Controller! it has a text field (Customer Name) and a button!
When I click the button in scene 1, a on-screen keyboard will appear without closing the scene!
on-screen keyboard has it has its own controller!
on-screen keyboard has a textfield and complete keyboard
typed "stackoverflow" into the textfield of on-screen keyboard!
after pressing enter in the on-screen keyboard how do I retrieve the textfield value of the on-screen keyboard into the customer name field of scene 1?
SCENE 1:
<TextField fx:id="CustomerName" layoutX="14.0" layoutY="75.0" onAction="#TextBoxTextChanged" prefHeight="29.0" prefWidth="254.0"/>
<Button fx:id="OnScreenKeyBoardButton" layoutX="268.0" layoutY="75.0" mnemonicParsing="false" onAction="#ButtonNameClick" prefHeight="29.0" text="..." />
On-Screen Keyboard:
All the Key's and
Enter Button Code:
<Button fx:id="enterButton" layoutX="796.0" layoutY="210.0" minHeight="18.8" mnemonicParsing="false" prefHeight="40.0" prefWidth="90.0" text="Enter" onAction="#ButtonEnterClick"/>
Scene 1 Controller:
@FXML
public void ButtonNameClick(final ActionEvent event)
{
//opens on-screen keyboard
}
On-Screen Keyboard Controller:
@FXML
public void ButtonEnterClick(final ActionEvent event)
{
//code to be written to get the text field of the on-screen keyboard into the textfield of scene 1
}