BUG Community

Welcome! Log In

Forums Java Java AWT Apps

Subscribe to Java AWT Apps  4 posts, 3 voices , Tagged: java

Log in to reply to this topic
 
May 17, 2010 2:50pm
User_img_not_found_05_med rawksolid 12 posts

I wanted to mess around with the SimpleGUI app from the BUGnet by adding a WindowListener so that I could close the program with the top right X. What is the best way to do this within the OSGi framework? I was planning on a System.exit(0) call (since I do that in all of my Java Swing applications), but figured the OSGi might have a nicer way to close the program. Thoughts?

-pm

May 17, 2010 3:45pm
Medium Bug Labs team jconnolly 285 posts

frame.close() and do your cleanup there (i.e. if you’re listening for BUGbase button events, unlisten, etc).  You never want to “System.exit(0)” from within an osgi context, you’ll kill the entire VM instance.  “Closing” a program has a different meaning when you’re an OSGi bundle.

Oct 24, 2012 1:53am
User_img_not_found_01_med qazqazqaz 469 posts

As a perfect combination of classic and modern fashion,Coach Outlet Online Julia Bags can show the customers'unique personality.Tiffany UK grabbed the globe, stands out as the celeb on their favorite stars luxury type, granted an innovative simple move the pavement luxury, complete with luxury.In terms of the quality and superior design that make more and more customers are satisfied to Coach Factory Online.Welcome!hat experts claim Coach Outlet Online shopping is in the changes they are available in.As long as you open our Coach Factory Outlet webpage, you will view various Coach New Arrivals which are the most popular also the most fashionable in this year.On the date when the Louis Vuitton UK on sale, all people will pour into the stores. At this time, it on the booths will be wiped out, and only one or two days the seller will declare that there is no stock anymore.

Oct 24, 2012 4:17am
User_img_not_found_01_med qazqazqaz 469 posts

Remember that the right accessories can enhance your alluring look with your Canada Goose Parkas Outlet.Baggy, ovoid shaped Canada Goose Jackets Outlet that are rounded around the shoulders look fabulous and can be a perfect match for you.This excellent conviction so that you class gets to amateur Canada Goose Outlet In a number of Parka, for example Young Canada Goose affordable Cardigan.Luxury has always been synonymous with fur and leather and this year a faux fur Canada Goose Jackets Outlet will surely be the key piece of your wardrobe.

Log in to reply to this topic
Forums Java Java AWT Apps

Powered by Community Engine