本文介绍了Java cardlayout不同类中的所有面板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我正在使用CardLayout,知道我只有一个类,接近800行代码,看起来非结构化。我的问题是,如何在不同的类中使用getContentPane中的所有不同面板?我不想对我的代码做错。



提前Thx



我尝试了什么:



试图分开它,但它失败了,我不知道如何在我的程序中调用它们

Hi guys,

I am using a CardLayout, know I have just one class with near to 800 lines of code and it looks unstructured. My question is, how can I take all the different panels in my getContentPane in separate classes? I don't want to do something wrong with my code.

Thx in advance

What I have tried:

Tried to separate it, but it failed and I don't know how to call them in my program

推荐答案


这篇关于Java cardlayout不同类中的所有面板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-12 15:37