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();
}
}
}