My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
Swing  
Updated Feb 4, 2010 by james.st...@gmail.com

UFace supports Swing for building rich applications inside a Java VM.

UIComposite

To be able to create widgets with UFace you need to get a UIComposite to represent the Panel you are gonna add widgets to. You can see this in action in the examples in the org.ufacekit.ui.swing test area.

You can create a UIComposite as follows in your JFace application.

JFrame frame = new JFrame();
Container container = frame.getContentPane();
UIComposite root = new SwingComposite(container);

// now I can create some UI components
UIFactory factory = root.getFactory();
factory.createTable(root, ...);

Sign in to add a comment
Powered by Google Project Hosting