Package action

Source Code of action.PregledRadnika

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

Related Classes of action.PregledRadnika

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.