Package action

Source Code of action.PregledArtikala

package action;

import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;

import javax.swing.ImageIcon;
import javax.swing.KeyStroke;

import paket.MainPanel;
import paket.TabelaArtikli;

public class PregledArtikala extends MyAction{
 
  /**
   *
   */
  private static final long serialVersionUID = -2482922218388220075L;
  public PregledArtikala(MainPanel owner){
    putValue(NAME, "Pregled artikala");
    putValue(SHORT_DESCRIPTION, "Pregled");
    putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_P,KeyEvent.CTRL_MASK));
    putValue(SMALL_ICON, loadIcon = new ImageIcon("Ikonice/table_icon.png"));
    setOwner(owner);
  }
  @SuppressWarnings("static-access")
  @Override
  public void actionPerformed(ActionEvent e) {
    try {
      getOwner().tbA = new TabelaArtikli();
      getOwner().tbA.tabelaArtikal();
    } catch (Exception e1) {
      e1.printStackTrace();
    }
  }
}
TOP

Related Classes of action.PregledArtikala

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.