Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
CardLayout に追加されたオブジェクトの参照を別のオブジェクトを指す新しい参照に置き換えるエレガントな方法はありますか? 今はよく考えているかどうかわかりませんが、フィードバックが欲しいだけです。
bankAccPanel を直接追加する代わりに、コンテナー (bankAccPanel + anotherPanelNow) に追加します。次に、メインコンテナではなくサブコンテナでカードを交換します.