Announcement Announcement Module
Collapse
No announcement yet.
beginner questions Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    As I said, I've never used the commands the way you mentioned. I have only ever used them as attached and triggered to a user input.

    So why isn't the command attached to the OK button? Or am I missing something?

    Guess I'm still not sure what you are trying to do functionally.

    Originally posted by Matrium View Post
    hi

    thank you for your advice, but i already tried that: changing the view via menuBar works fine, but it doesnt solve my problem, i am still unable to do it in my class

    i got a jtable in my first view, and if the user presses the "ok" button i check if there is really something selected in the table, and if so i execute the testView command.
    i even tested xxx.execute(), it works perfectly for all commands defined in that class, so the real problem seems to be:

    why does the commandManager return null instead of the command?

    Comment


    • #17
      *edit again*

      Code:
      ActionCommand x = (ActionCommand) getActiveWindow().getCommandManager().getCommand("testView");
      x.execute();
      i really dont know what i did wrong before, anyway, it works fine now

      thanks for your help!
      Last edited by Matrium; May 18th, 2009, 02:01 AM.

      Comment

      Working...
      X