-2

I got a problem. I created two BankAccounts using MVC but when I execute them, the frames open in the same location. How can I set different locations?

Mergim Rama
  • 178
  • 1
  • 10

1 Answers1

3

Assuming yours is a Swing GUI (you don't tell us), JFrame has a setLocation(...) method, a method that JFrame API will readily show you.

But having said that, be sure to also read The Use of Multiple JFrames, Good/Bad Practice?

Community
  • 1
  • 1
Hovercraft Full Of Eels
  • 280,125
  • 25
  • 247
  • 360