i would like to know how can i access another application

like i have a file, edit, options, help in menu bar

like that i have a session and in session i have a login
when i press login i have to get a password screen

how can i do it with action listener