Code:
public class pButton3 {
public static UICommand command3;
public static void start() throws Exception {
try {
Session curSession = pfcGlobal.GetProESession();
//Initialisierung der auszuführenden Klasse
pAssemblyAFPS af = new pAssemblyAFPS();
try{
command3 = curSession.UICreateCommand("myCommand3",af);
}catch (jxthrowable x){
JOptionPane.showMessageDialog(null,"Exception UICreateCommand: "+x);
}
try{
curSession.UIAddButton(command3, "USER Menu3", null, "USER Button3", "USER Message3", "buttonnames3.txt");
}catch (jxthrowable x){
JOptionPane.showMessageDialog(null,"Exception UIAddButton: "+x);
}
} catch(Exception err) {
JOptionPane.showMessageDialog( null, "pButton3(): Exception in AssemblyAFPS UIAddButton(): " + err.toString() );
}
}
public static void stop() {
}
}