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.TabelaRadnici;
public class PregledRadnika extends MyAction{
/**
*
*/
private static final long serialVersionUID = -4534343840228299015L;
public PregledRadnika(MainPanel owner){
putValue(NAME, "Pregled radnika");
putValue(SHORT_DESCRIPTION, "Radnici");
putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_S,KeyEvent.CTRL_MASK));
putValue(SMALL_ICON, loadIcon = new ImageIcon("Ikonice/Data-Viewer .jpg"));
setOwner(owner);
}
@SuppressWarnings("static-access")
@Override
public void actionPerformed(ActionEvent arg0) {
try {
getOwner().tb = new TabelaRadnici();
getOwner().tb.test();
} catch (Exception e) {
e.printStackTrace();
}
}
}