문제

I have one JFrame and in that I have 10 JLabel which will open new JFrame. that JFrame is Same that will open in 10 label but how to Disable that root JFrame when the Another JFrame is open and Enable that Root JFrame when that new frame is Closed? Can I have your Suggestion please.

도움이 되었습니까?

해결책

Don't use multiple JFrames. An application should only have a single JFrame.

For secondary windows you should use a modal JDialog. A modal JDialog will not allow you to click on the parent JFrema until the dialog is closed.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top