private ApplicationFrame createApplicationFrame(){
        return new ApplicationFrame(new ActionListenerFactory() {

            @Override
            public ActionListener createActionListener(final String action) {
                return new ActionListener(){

                    @Override
                    public void actionPerformed(ActionEvent e) {
                        Command command = commandMap.get(action);
                        if (command==null) {
                            return;
                        }
                        command.execute();
                    }
                };
            }
        });
    }