How can I put a Swing GUI on a C++ application?
In order to put a Swing GUI on a C++ application you have to decide in which language you want to do most of the work. You can either create most of the GUI in Java and then proxy these classes to C++, or you can build the Swing GUI in C++ by assembling custom dialogs or windows from proxy components (I personally prefer the first way).
One crucial problem that JunC++ion solves very neatly is the information flow between the Java GUI and the C++ application. JunC++ion allows you to implement Java Listeners in C++. This allows you to receive event notifications when the user presses an OK button or selects a menuitem and to perform the required application logic in C++.
DemoPanel p( "Test Window" );
p.setBounds( 10, 10, 200, 200 );
p.add( JButton( "New Button" ) );
p.setVisible( true );
while( p.isShowing() )
Sleep( 500 );
JunC++ion is currently generally available on Wintel but ports to various Unixes are underway. You can find out more about JunC++ion at http://www.codemesh.com