OpenOptionsDialogAction.java :  » Development » DrawSWF-1.2.9 » at » bestsolution » drawswf » actions » Java Open Source

Java Open Source » Development » DrawSWF 1.2.9 
DrawSWF 1.2.9 » at » bestsolution » drawswf » actions » OpenOptionsDialogAction.java
/*
 *  Copyright (c) 2002
 *  bestsolution EDV Systemhaus GmbH,
 *  http://www.bestsolution.at
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2, or (at your option)
 * any later version.
 *
 * This program 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 General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 *  $Header: /usr/bestsolution/cvsroot/java/draw_swf/at/bestsolution/drawswf/actions/OpenOptionsDialogAction.java,v 1.1 2003/02/27 14:20:29 tom Exp $
 */
package at.bestsolution.drawswf.actions;

import java.awt.event.ActionEvent;

import javax.swing.KeyStroke;

import at.bestsolution.drawswf.DrawingPanel;
import at.bestsolution.drawswf.dialog.OptionsDialog;

/**
 *
 * @author  heli
 */
public class OpenOptionsDialogAction extends AbstractDrawAction
{
    private OptionsDialog options_dialog_;

    //----------------------------------------------------------------------------
    public OpenOptionsDialogAction(String description, String icon_name, DrawingPanel drawing_panel)
    {
        super(description, tool_bar_icon_path + icon_name, drawing_panel);
        
    }
    
    //----------------------------------------------------------------------------
    public OpenOptionsDialogAction(String displayedText, String description, String icon_name, DrawingPanel drawing_panel, int mnemonicKey, KeyStroke accelerator)
    {
        super( displayedText, description, menu_bar_icon_path + icon_name, drawing_panel, mnemonicKey, accelerator );
    }
    
    //----------------------------------------------------------------------------
    public void actionPerformed(ActionEvent action_event)
    {
        options_dialog_ = new OptionsDialog();
        options_dialog_.show();
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.