I am creating an app in Java swing. It has Screen_1 Screen_2 and Screen_3. Now I want to go back from Screen_2 to a specific card in Screen_1 How to do that??
I believe - card layouts can help you out - Card Layout
Code would be something like this:
JPanel parentPanel = (JPanel)getParent();
CardLayout layout = parentPanel.getLayout();
layout.show(panel, "...");
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.