Package gui.action

Source Code of gui.action.SetOptions

/*
* Hamsam - Instant Messaging API
* Copyright (C) 2003 Raghu K
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

package gui.action;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import gui.tools.Traces;
import gui.tools.PropertiesManager;

import gui.MainFrame;
import gui.OptionFrame;

/**
* <p>Titre : Hamsam Project</p>
* <p>Description : Instant Messenger</p>
* <p>Copyright : Copyright (c) 2003</p>
* <p>Soci�t� : </p>
* @author Fr�d�ric DIB
* @version 0.1
*/

public class SetOptions implements ActionListener{
  private PropertiesManager propertiesMgr = null;
  private MainFrame owner = null;

  /**
   * Constructor.
   */
  public SetOptions(PropertiesManager p, MainFrame o) {
    this.propertiesMgr = p;
    this.owner = o;
  }

  public void actionPerformed(ActionEvent evt) {
    Traces.printTraces("Set options");
    OptionFrame frame = new OptionFrame(this.owner, this.propertiesMgr);
    frame.pack();
    frame.setResizable(false);
    frame.setVisible(true);
  }
}
TOP

Related Classes of gui.action.SetOptions

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.