JOptionPane.showMessageDialog(null, java.util.ResourceBundle.getBundle("global").getString("noTransFound"),java.util.ResourceBundle.getBundle("global").getString("Error"),
JOptionPane.showMessageDialog(null, "No Transitions found!","Error",
    public StatePopup(VFSAGUI _myGUI) {        edit = new JMenuItem(java.util.ResourceBundle.getBundle("global").getString("editTrans"),                new ImageIcon("images/edit.png"));        delete = new JMenuItem(java.util.ResourceBundle.getBundle("global").getString("remove"),                new ImageIcon("images/edit_remove.png"));        startst = new JCheckBoxMenuItem(java.util.ResourceBundle.getBundle("global").getString("Startstate"),                new ImageIcon("images/start.png"));        finalst = new JCheckBoxMenuItem(java.util.ResourceBundle.getBundle("global").getString("finalState"),                 new ImageIcon("images/final.png"));                add(edit);        add(delete);        addSeparator();        add(finalst);        add(startst);                myGUI = _myGUI;                // Transitionen editieren        edit.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent event) {                // starte den transedit Dialog                if (invoker.getTransList().isEmpty()) {                    JOptionPane.showMessageDialog(null, java.util.ResourceBundle.getBundle("global").getString("noTransFound"),java.util.ResourceBundle.getBundle("global").getString("Error"),                                    JOptionPane.WARNING_MESSAGE);                    return;                }                                TransEdit myTEdlg;                                myTEdlg = new TransEdit(myGUI);                                myTEdlg.setData(invoker.getTransList());                                myTEdlg.run();                invoker.getParent().repaint();            }        });                // Zustand lschen        delete.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent event) {                AutWindow mainWindow;                // lsche den auslsenden Zustand                mainWindow = (AutWindow)invoker.getParent();                mainWindow.removeState(invoker);            }        });                startst.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent event) {                invoker.setStartState(!invoker.isStartState());            }        });                finalst.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent event) {                invoker.setFinalState(!invoker.isFinalState());            }        });            }