How to create a pop up window for a app

105 views
Skip to first unread message

girishanem

unread,
Sep 13, 2012, 6:08:31 AM9/13/12
to cytoscap...@googlegroups.com
Hi,

I want to pop a window once user clicks on the menu item. Similar to the event: when a user clicks on Apps->App Manager we are getting a popup window. Similar popup window is required.

How to build the code using Simple App procedure. I have added a action to the App->SimpleClickapp. On selecting the menu, how to write the code in actionPerformed(ActionEvent e) so that i can get a JFrame or JDialog Popup window. I can design the POP-up window, but i am not able to understand how to get that window.

Regards,
Girish Anem

Jason Montojo

unread,
Sep 13, 2012, 11:35:25 AM9/13/12
to cytoscap...@googlegroups.com
Hi Girish,

I want to pop a window once user clicks on the menu item. Similar to the event: when a user clicks on Apps->App Manager we are getting a popup window. Similar popup window is required.

How to build the code using Simple App procedure. I have added a action to the App->SimpleClickapp. On selecting the menu, how to write the code in actionPerformed(ActionEvent e) so that i can get a JFrame or JDialog Popup window. I can design the POP-up window, but i am not able to understand how to get that window.

The process is the same as with any other Swing application.  For example:

public void actionPerformed(ActionEvent event) {
    JDialog dialog = new JDialog();
    dialog.add(new JLabel("Hello!"));
    dialog.pack();
    dialog.setVisible(true);
}

Hope this helps,
Jason

girishanem

unread,
Sep 13, 2012, 3:01:00 PM9/13/12
to cytoscap...@googlegroups.com
Hi Jason,

Thanks for the information. Can you tell me some List of Cytoscape 3 application's which are developed in Simple App Procedure, so that i can use them as reference.

Thanks,
Regards
Girish Anem

Jason Montojo

unread,
Sep 13, 2012, 3:11:22 PM9/13/12
to cytoscap...@googlegroups.com
Hi Girish,

I'm not aware of any full-fledged Cytoscape 3 apps that have been developed as simple apps.  The ones I know of are all bundle apps.  However, we do have some toy examples here:


All the samples whose name ends with "a" (for example, sample02a) are simple apps.

Hope this helps,
Jason

--
You received this message because you are subscribed to the Google Groups "cytoscape-discuss" group.
To view this discussion on the web visit https://groups.google.com/d/msg/cytoscape-discuss/-/z7QG13dqYCEJ.

To post to this group, send email to cytoscap...@googlegroups.com.
To unsubscribe from this group, send email to cytoscape-disc...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cytoscape-discuss?hl=en.

girishanem

unread,
Sep 13, 2012, 3:38:21 PM9/13/12
to cytoscap...@googlegroups.com
Hi Jason,

I went through these examples, but these are very limited examples. Any way, i will post in the form for help, if i face any problem in Simple App development procedure.

Thanks,
Regards
Girish Anem
Reply all
Reply to author
Forward
0 new messages