我想补充的pdf2swf创建的SWF文件中vaadin窗口,如何添加swf文件中vaadin
于是,我就在书给出Vaadin的代码https://vaadin.com/book/-/page/components.embedded.html
final ClassResource flashResource = new ClassResource("Requirements.swf", getMainWindow().getApplication());
final Embedded embedded = new Embedded("Embedded Caption", flashResource);
embedded.setType(Embedded.TYPE_OBJECT);
embedded.setMimeType("application/x-shockwave-flash");
embedded.setWidth("100px");
embedded.setHeight("100px");
mainWindow.addComponent(embedded);
mainWindow.requestRepaintAll();
但我仍不能在vaadin窗口中看到swf。
感谢, 约杰什
谢谢,它与swf文件的位置有关... –