UML Sequence Diagrams – Showing User and User Interface Interaction

modelingsequence-diagramuml

I need to draw a sequence diagram and I am not sure exactly if it is correct to show interaction between user and user interface in this diagram. For example I want to make a panel visible or invisible based on choosing a check box by user. Is it correct to have it on a sequence diagram? and how can I draw it?

thanks

Best Answer

UML allows to you to place an actor in a sequence diagram. The actor ("user") has a lifeline like any object instance. I'd say that "checking the check box" is the message, that the user sends to your check box instance. Alternatively you can take the IBM approach and let the initial event be an incoming message to your first instance.