Embed « Component « Java Swing Q&A





1. embed Flex components into Java Swing    stackoverflow.com

I'm going to embed Flex components into Java app, just embedding swf into JFrame. Does anybody know how to use EZ JCOM ? I don't know what is Flash COM or ...

2. Updating an Attribute of a Component embedded in an AbstractDocument    stackoverflow.com

I'm inserting a component into an AbstractDocument as shown in the code below.

final MutableAttributeSet aS = new SimpleAttributeSet();
aS.addAttribute(Utils.STYLE_ATTRIBUTE, attributeValue);
Component myComponent = new MyComponent();
myComponent.addMouseListener(l);
StyleConstants.setComponent(aS, myComponent);

insertString(caretPosition, REPLACEMENT_CHARACTER, aS);
Note that I'm also adding a ...

3. embed Flex component in Java Swing    java-forums.org

Hi All, I'm trying to embed Flex component(.swf or .air) in java Swing component. The library that I found is ezjcom. I could run its Java sample code to play a swf movie inside a java frame. But the documentation of this library is not well-explained so I dont know how to use them to write my own code. Does anyone ...