Question
I need to make an instagram-like social media using java gui swing. There are User class where I enter basic user information such as username,
I need to make an instagram-like social media using java gui swing. There are User class where I enter basic user information such as username, password, followerList and a gui class that I created with the windowsbuilder named UserHome extends JFrame that have information panel personal photo and followerList. and I created a main class for creating 8 new users in total and I need to be able to enter the pages using the information of those users. I have two questions. 1. On the login page, I create a field called User user and make text fields for user.getName and password toString to check whether they are equal or not, and accordingly I direct the User to UserHome page with their information. But while doing this, my code throws an error. The second is how can I add a new user to the system when I enter new information on the register page. Registrar page is classic registration page that I created with Jframe windowsbuilder. When I enter the same information at login after the registry page, the UserHome page should open.
I'm also not sure if I'm using the main class very well. Here, I give values such as User u1 = new{} to the constructors in the user, such as string name, the list they follow, and so on. For example, how exactly should I write the list they follow? Is it like a hash map because there are people from different classes there.
JAVA
Step by Step Solution
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
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started