Logo
Distributed Genetic Programming Framework
print print

File org.dgpf.gui.actions.MinimizeAction.java

Here you can find all the information about the file org.dgpf.gui.actions.MinimizeAction.java. You may explore it here or download it onto your local disk.
/**
 * 
 */

package org.dgpf.gui.actions;

import java.awt.Component;
import java.awt.event.ActionEvent;
import java.beans.PropertyVetoException;

import javax.swing.AbstractAction;

import org.dgpf.gui.InternalFrame;
import org.dgpf.gui.utils.LanguageSwitcher;

/**
 * Handles a iconify action.
 * 
 * @author lado
 */

public class MinimizeAction extends AbstractAction
  {
  /**  */
  private static final long serialVersionUID = 659017577682455551L;

  /**  */
  private Component         m_c;

  /**
   * @param comp
   *          A Component to close.
   */

  public MinimizeAction(Component comp)
    {
    super(LanguageSwitcher.getString("actions.minimize"));
    this.m_c = comp;
    }

  /**
   * @param e
   *          event to handle.
   * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
   */

  @SuppressWarnings("synthetic-access")
  public void actionPerformed(ActionEvent e)
    {
    if(this.m_c instanceof InternalFrame)
      {
      try
        {
        ((InternalFrame) this.m_c).setIcon(true);
        }
      catch(PropertyVetoException e1)
        {
        e1.printStackTrace();
        }
      }
    }
  }

File Information:

file name:MinimizeAction.java
package:org.dgpf.gui.actions
qualified name:org.dgpf.gui.actions.MinimizeAction.java
file type:Java Source File
download location:download http://dgpf.sourceforge.net/source/org/dgpf/gui/actions/MinimizeAction.java
size:1.135 KB (1163 B)
uploaded: 2015-07-22 04:10:58 GMT+0000
last update: 2006-09-24 23:47:04 GMT+0000
last access: 2017-11-23 05:37:31 GMT+0000

statistics online since 2006-01-02.   RSS Feed
Contact us by sending an email to tweise@gmx.de to receive further information, to report errors, or to join our project.
All content on this site (http://dgpf.sourceforge.net/) is LGPL-licensed.
http://dgpf.sourceforge.net/scripts/source/source.php last modified at 2015-07-22 04:10:53 GMT+0000 served at 2017-11-23 05:37:31 GMT+0000.
Valid CSS Valid XHTML 1.1
Valid RSS SourceForge.net Logo