Code example for WindowEvent

Methods: getID

0
     * 
     * @see #setDefaultCloseOperation 
     */ 
    protected void processWindowEvent(WindowEvent e)
    { 
        super.processWindowEvent(e);
 
        if (e.getID() == WindowEvent.WINDOW_OPENED) pack();
    } 
 
    /** 
     * Returns the list of feeds to add. 
     * 
     * @return feeds to add. 
     */ 
    public List getAddFeeds()
    { 
        return FeedCheckBox.getSelected(lstAddFeeds.getModel());
    }