MainApp.BaseFrame이 JFrame 객체라고 하자.

우선 toFront() 메소드를 고려할 수 있으나,

플랫폼에 따라 원하는대로 동작하지 않을 수 있다.

Windows XP에서 제대로 동작하지 않았다.

      //MainApp.BaseFrame.toFront(); // it doesn't work!
      MainApp.BaseFrame.setExtendedState(JFrame.NORMAL);
      MainApp.BaseFrame.setAlwaysOnTop(true);
      MainApp.BaseFrame.setAlwaysOnTop(false);

위와 같은 꽁수로 어찌어찌 넘어가 본다.
Posted by 알 수 없는 사용자
,