当我编译下面的java代码时,
Window w = c instanceof Window ? (Window) c : SwingUtilities.getWindowAncestor(c);
WindowPeer peer = (WindowPeer) w.getPeer();
我收到以下警告消息:
warning: WindowPeer is internal proprietary API and may be removed in a future release
知道如何解决这个问题吗?我正在使用 JDK 1.6,我也尝试了 1.7。