Java Virtal Machine.net

[ News ] rss

February 01, 2011

Mark Wielaard: New GPG key. Finally created a new GPG key using gnupg. The old one was a DSA/1024 bits one and 8 years old. The new one is a RSA/2048 bits one. I will use the new one in the future to sign any release tarballs I might create. pub 2048R/57816A6A 2011-01-29 Key f...

More »

February 01, 2011

Andrew Hughes: [SECURITY] IcedTea6 1.7.8, 1.8.5, 1.9.5 Released!. We are pleased to announce a new set of security releases, IcedTea6 1.7.8, IcedTea6 1.8.5 and IcedTea6 1.9.5. This update contains the following security updates: The IcedTea project provides a harness to build the source code from OpenJDK6 u...

More »

June/2024
SunMonTueWedThuFriSat
      1
2345678
9101112 131415
16171819202122
23242526272829
30      

[ Archives News
for 'Java Technology' ]

home > news > java technology > amino + swing = crazy delicious

Amino + Swing = Crazy Delicious

For the past few months I#039;ve been working on an open source UI toolkit called Amino. It has lots of cool features like a scenegraph, CSS control skinning, and dynamic translation editing. You just have write your app in Amino and you get the cool stuff for free. But what if you have an existing Swing application and don#039;t want to rewrite it? Don#039;t worry, Amino#039;s got you covered. Amino now has beta integration with Swing. You can drop any Amino scene into a Swing panel, then mix it with the rest of your app. The key is the JComponentWrapper class, which implements JComponent and contains Amino Nodes. Rectangle aminoRect = new Rectangle(0,0,20,20).setFill(FlatColor.BLUE); JComponentWrapper wrapper = new JComponentWrapper(); wrapper.setContent(aminoRect); JPanel panel = new JPanel(); panel.setLayout(new BorderLayout()); panel.add(wrapper,BorderLayout.CENTER); That#039;s all you have to do. JComponentWrapper will process all of the repaints and map Swing events to Amino events. Here#039;s a screenshot of a more complicated example that embeds a custom Amino chart in the middle of a frame with other Swing components. To learn more about Amino, you can: visit the overview page download the source Join the developer list Visit the Google Code site


Date: December, 10 2010
Url: http://www.java.net/blog/joshy/archive/2010/12/09/amino-swing-crazy-delicious


Others News

©2002-2019Java-Virtual-Machine.net https://mobirise.com/ | best web design software | top web builder | top free website builder | bootstrap button