are required to develop a small chatting application where two or more friends can communicate each other through messages. Create a class Message which has Date date, and message (string). Provide getters/setters, constructors, toString. Create a class Friend having String name, String contact, email provide getters/setters, constructors, toString. Provide following options to the user. Add Friend (which add new friend to the Friends file) View Friends (read data from Friends file and display) Send message (This should ask for friend name and message match the friend name and write that message to the inbox file). Read messages (This show all messages form inbox on JList or Text area. Note: Create a manager class with methods use to read and write messages to “inbox” file you should write sentMessage(Friend f, Message message) method which write the messages to the file user can send as many message as he/she wants (use loop and arraylist). Write another method readMessages() which then reads message from the file and display on the screen messages of friends. Create another manager class which have methods to read and write friend to the Friends File. Use File handeling method, GUI Frame in Java and try to work in three tier layers. Thank You!!
You are required to develop a small chatting application where two or more friends can communicate each other through messages.
Create a class Message which has Date date, and message (string). Provide getters/setters, constructors, toString.
Create a class Friend having String name, String contact, email provide getters/setters, constructors, toString.
Provide following options to the user.
- Add Friend (which add new friend to the Friends file)
- View Friends (read data from Friends file and display)
- Send message (This should ask for friend name and message match the friend name and write that message to the inbox file).
- Read messages (This show all messages form inbox on JList or Text area.
Note: Create a manager class with methods use to read and write messages to “inbox” file you should write sentMessage(Friend f, Message message) method which write the messages to the file user can send as many message as he/she wants (use loop and arraylist). Write another method readMessages() which then reads message from the file and display on the screen messages of friends. Create another manager class which have methods to read and write friend to the Friends File.
Use File handeling method, GUI Frame in Java and try to work in three tier layers. Thank You!!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps