I Need to write the texted entered in the tableview to a text file then load that text file to the tableview.

New Perspectives on HTML5, CSS3, and JavaScript
6th Edition
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Patrick M. Carey
Chapter7: Designing A Web Form: Creating A Survey Form
Section: Chapter Questions
Problem 4CP3
icon
Related questions
Question

I Need to write the texted entered in the tableview to a text file then load that text file to the tableview. 

 

I need the carrect answer as soon as possible please 

@FXML
private Button Add;
@FXML
private TextField movieText;
@FXML
private Button remove;
@FXML
private Button load;
@FXML
private Button save;
@FXML
private TableView<Movie> movieTable;
@FXML
private TableColumn<Movie, String> movieColumn;
@Override
public void initialize (URL url, ResourceBundle rb) {
movieColumn.setCellValue Factory (new PropertyValueFactory<Movie, String>("name"));
}
@FXML
public void Add (ActionEvent event) {
Movie movie = new Movie (movieText.getText());
ObservableList<Movie> movies = movieTable.getItems ();
}
movies.add (movie);
movieTable.setItems (movies);
@FXML
void remove (ActionEvent event) {
int selectedID = movieTable.getSelectionModel().getSelectedIndex();
movieTable.getItems ().remove (selectedID);
@FXML
void load (ActionEvent event) {
@FXML
private void save (ActionEvent event) {
Transcribed Image Text:@FXML private Button Add; @FXML private TextField movieText; @FXML private Button remove; @FXML private Button load; @FXML private Button save; @FXML private TableView<Movie> movieTable; @FXML private TableColumn<Movie, String> movieColumn; @Override public void initialize (URL url, ResourceBundle rb) { movieColumn.setCellValue Factory (new PropertyValueFactory<Movie, String>("name")); } @FXML public void Add (ActionEvent event) { Movie movie = new Movie (movieText.getText()); ObservableList<Movie> movies = movieTable.getItems (); } movies.add (movie); movieTable.setItems (movies); @FXML void remove (ActionEvent event) { int selectedID = movieTable.getSelectionModel().getSelectedIndex(); movieTable.getItems ().remove (selectedID); @FXML void load (ActionEvent event) { @FXML private void save (ActionEvent event) {
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Hyperlinks
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning