Question
Create the following class: MessageBoard The MessageBoard class will be the main point of entry into your JavaFX application and will meet the following functional
Create the following class:
MessageBoard
The MessageBoard class will be the main point of entry into your JavaFX application and will meet the following functional requirements:
•The window should have a title that contains your name and "CS1331 Message Board" (e.g. “Ricky’s CS1331 Message Board”)
o A messages area where any posted messages can be seen.
o The messages area should have a minimum height of 500.
o Messages should be displayed sequentially in descending chronological order (i.e. newest first), with the most recent messages being closer to the top of the area. The messages should be aligned vertically.
•An area where the user can input their name and a message into text fields.
o The user should be able to tell which text field corresponds to the name and which text field corresponds to the message when typing in text. This can be done in many ways, including things like prompt text or labels for the text fields.
•A button that users can click to post their message to the messages area.
o A message should only be able to be posted if the name and message text fields are non-blank. An Alert should pop up when the button is clicked letting the user know if either of these fields are blank.
o Once a message is posted, the text fields should be cleared of any text.
Reminders, Hints, and Tips:
•Be sure to use appropriate visibility modifiers for variables and methods for proper encapsulation
•You may create additional classes if it helps modularize your application but it is not required.
•HBox and VBox are your friend with layouts. Use them to liberally if needed.
•When posting messages, they are going to be vertically aligned. What layout helps us with this?
•add Java doc comments!
Extra Credit(up to a maximum of 20 points):
We want you to be creative in your approach to satisfying the requirements above, so we are offering extra credit if you implement additional meaningful functionality. Below are a few examples of ways you can improve your project. Feel free to explore other opportunities and follow your interests.
•Display the messages in a List View.
•Make the message area scrollable, but the input fields stay stationary. •Add time stamps to messages.
•Update the title to include the total number of messages currently on the message board.
•Add the functionality required to remove messages from the message board(both the logic and the UI elements).
•Add additional graphics, formatting, or animations to enhance the visual appeal of the UI.
•You must submit a READ_ME.txt file that includes what features you added for extra credit!
Allowed Imports
To prevent trivialization of the assignment, you are only allowed to import the following classes:
•You are allowed to import from any package that starts with java or javafx that do not belong to the AWT or Swing APIs. This includes java.util.Date and java.util.Calendar, as they both start with java
•Remember that JavaFX is different that AWT or Swing. If you are trying to import something from javax.swing or java.awt, you are probably importing the wrong class.
Step by Step Solution
3.29 Rating (140 Votes )
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Document Format ( 2 attachments)
63613c2bd23c2_235459.pdf
180 KBs PDF File
63613c2bd23c2_235459.docx
120 KBs Word File
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started