CardLayout获取所选卡的名称 [英] CardLayout get the selected card's name

查看:249
本文介绍了CardLayout获取所选卡的名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在卡片布局中获取所选面板的字符串标识符。

How can I get the string identifier of the selected panel in card layout.

推荐答案

CardLayout不知道是什么目前选定的面板是。
调用show()方法时,你应该自己将它保存在内存中。

The CardLayout does not know what the currently selected panel is. You should keep this in memory yourself, when calling the show() method.

这篇关于CardLayout获取所选卡的名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆