Question: java problem this is my code file 1 college tracker package com.example.thelastprojet; import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.*; import javafx.scene.layout.*; import javafx.stage.Stage; public class CollegeTrackerGUI

java problem

java problem this is my code file 1 college tracker package com.example.thelastprojet;

this is my code

file 1 college tracker

package com.example.thelastprojet; import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.*; import javafx.scene.layout.*; import javafx.stage.Stage; public class CollegeTrackerGUI extends Application { private ApplicationTracker applicationTracker; public static void main(String[] args) { launch(args); } @Override public void start(Stage primaryStage) { applicationTracker = ApplicationTracker.loadFromFile("application_data.ser"); // Initialize UI components TextField collegeNameField = new TextField(); // ... other UI components Button addButton = new Button("Add Application"); Button searchButton = new Button("Search Application"); addButton.setOnAction(e -> addApplication(collegeNameField.getText())); searchButton.setOnAction(e -> searchApplication(collegeNameField.getText())); // Set up layout VBox layout = new VBox(10); layout.getChildren().addAll(collegeNameField, addButton, searchButton); // Set up scene Scene scene = new Scene(layout, 300, 200); // Set up stage primaryStage.setTitle("College Transfer Application Tracker"); primaryStage.setScene(scene); primaryStage.show(); } private void addApplication(String collegeName) { // Implement logic to add a new application // Update applicationTracker and save to file } private void searchApplication(String collegeName) { // Implement logic to search for an application // Display the application details } @Override public void stop() { applicationTracker.saveToFile("application_data.ser"); } }

file 2 college application

package com.example.thelastprojet; import java.io.Serializable; import java.util.List; public class CollegeApplication implements Serializable { private String collegeName; private String address; private String dateOfApplication; private double cost; private String applicationPlatform; private List recommendations; private String essayStatus; private String transcriptStatus; private String acceptanceDate; public void setAddress(String address) { this.address = address; } public String getAddress(){ return this.address; } public void setCollegeName(String collegeName) { this.collegeName = collegeName; } public String getCollegeName(){ return this.collegeName; } // Constructors, getters, setters, toString, etc. }

file 3 recommendation

package com.example.thelastprojet; import java.io.Serializable; public class Recommendation implements Serializable { private String recommenderName; private String emailAddress; private String dateRequested; private String dateRequired; // Constructors, getters, setters, toString, etc. }

file 4

package com.example.thelastprojet; import java.io.*; import java.util.ArrayList; import java.util.List; public class ApplicationTracker implements Serializable { private List applications; public ApplicationTracker() { applications = new ArrayList(); } public void addApplication(CollegeApplication application) { applications.add(application); } public CollegeApplication searchApplication(String collegeName) { for (CollegeApplication application : applications) { if (application.getCollegeName().equalsIgnoreCase(collegeName)) { return application; } } return null; } public void saveToFile(String filename) { try (ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(filename))) { oos.writeObject(this); } catch (IOException e) { e.printStackTrace(); } } public static ApplicationTracker loadFromFile(String filename) { try (ObjectInputStream ois = new ObjectInputStream(new FileInputStream(filename))) { return (ApplicationTracker) ois.readObject(); } catch (IOException | ClassNotFoundException e) { e.printStackTrace(); return new ApplicationTracker(); } } }

when I run the code I get this what am I doing wrong ?

import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.*; import javafx.scene.layout.*; import javafx.stage.Stage; public class

In the coming year or so, you will be applying to several colleges for transfer. Your job for your final project is to create a College Transfer Application Tracker. You will create a GUI for this project so that you can enter the college name, address, date of application, cost, where you applied (common app, or other sites), recommender name(s), email address, date recommendation requested, date recommendation required (room for more than one recommendation (person recommending) if necessary), date of expected acceptance letter, whether you have written your essay, whether you have submitted your transcripts. Look at CommonApp, and the application sites for some colleges you are thinking of applying to make sure you have all the information you need on your College Transfer Application Tracker. All this information requires more than one class in addition to your GUI. The information should be written in a file (binary or text). You should be able to search for a particular transfer application from the file and print it out in a "nice" (understandable) way. Your code should be documented using JavaDocs. Outcomes Assessed: - Variables and assignment statements - Local variables - Data types and expressions - Simple flow control - Logical expressions - Multiway branches - Designing loops, for loops and while loops - Containers: Arrays, ArrayLists, etc. - Input and output: Streams and Files - Classes and abstract data types - Interfaces - Programmer defined functions - Program style - JavaFX GUI design principles - Object-Oriented design - Testing and debugging techniques - Code documentation (JavaDocs) College Transfer Applic... Add Application Search Application

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!