I have been wondering how I would be able to move from one frame to another using a button. At the moment, the way I have been doing it is by hiding this frame, the frame that is currently showing by this.setVisible(false), and creating a new frame by using new BuyRatesFrame().setVisible(true);
Although this technically works, it is not the best method that should be used when traversing between panels.
While googling on more efficient methods, I stumbled upon Card Layout.
I will update more after finishing a game that I'm playing. :D
No comments:
Post a Comment