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.
それ自体を参照することなく、aの aにComponent追加されたを削除する方法はありますか?CENTERJPanelBorderLayoutComponent
Component
CENTER
JPanel
BorderLayout
このようなもの?
BorderLayout layout = (BorderLayout)panel.getLayout(); panel.remove(layout.getLayoutComponent(BorderLayout.CENTER));