Accusamus2065 / Easy-Healthcare

MIT License
0 stars 2 forks source link

LoginView Problem #40

Closed jihyuky closed 1 year ago

jihyuky commented 1 year ago

When switching from the WelcomeView to the LoginView, the LoginView opens in a new window instead of swapping the view from WelcomeView to LoginView. I think this is a LoginView problem, and maybe it is because I didn't use the swapviews method?

I do not think it is WelcomePresenter's problem because SignupView is loaded correctly, so it is most likely the LoginViews problem.

taml5 commented 1 year ago

The issue is caused by the fact that LoginView has a new JFrame which is being used instead—the fix would be to simply remove all mentions of frame, make LoginView extend JPanel, and change all references from panel to this.