세 개의 JPanel, fatherPanel, childPanel1, childrenPanel2가 있습니다.페인트 도구와 SwingUtilities.updateComponentTreeUI의 차이점은 무엇입니까?
버튼을 클릭하면 아버지 패널에서 현재 자식 패널을 제거하고 아버지 패널에 다른 자식을 추가합니다.
매번 revalidate() 및 repaint()를 호출하여 UI를 업데이트해야합니다.
그런 다음 SwingUtilities.updateComponentTreeUI()에 동일한 효과가 있음을 알고 있습니다.
나는 두 개의 차이점이 있는지 알고 싶습니까?