装入框架并将其移出显示器的可见区域。例如:
frame.pack(); frame.setLocation(-2000, -2000); frame.setVisible(true); // There you go, the frame won't be visible