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.
BorderLayoutのコンテナとLayoutConstraint="South"のボタンがあります。実行時に「北」に変更するにはどうすればよいですか?
コンテナからコンポーネントを削除し、北に再度追加します。電話revalidate()またはそれ以上のanimateLayout()例
revalidate()
animateLayout()
myBorderContainer.removeComponent(button); myBorderContainer.addComponent(BorderLayout.NORTH, button); myBorderContainer.animateLayout(300);