Return value of method call in Sequence diagram

Is there a way to show return value of method call in sequence diagram. For example can anybody give me a step by step solution of folloving behavior:

 
class A {
...
   public void someMethod() {
      Panel panel=someClass.getPanel();
      someOtherClass.setPanel(panel);
   }
...
 

If I create a method call on getPanel() and then click on the return message icon of that call I can select only methods from class A.

Hi owl,

To specify return value:

  1. Right-click on the return message
  2. Select Open Specification… from the pop up menu
  3. Enter the return value there. (You can press … for more detailed information of the return value)

An alternative way is to double-click on the message and enter the value directly.

Best regards,
Jick