2011-07-09 62 views

回答

1

試試這個代碼:

protected void createFrame() { 

    MyInternalFrame frame = new MyInternalFrame(); 
    frame.setVisible(true); 
    desktop.add(frame); 
    try { 
     frame.setSelected(true); 
    } catch (java.beans.PropertyVetoException e) {} 
} 
相關問題