Bonjour,
J'utilise l'API Batik pour afficher des images SVG. Je souhaiterais afficher un "miniature" (thumbnail) de l'image actuelle.
Aucun problème, Batik fournit une classe.
Mais sa classe fournit un objet JDialog. Hors j'aimerais intégrer la thumbnail dans la fenêtre de l'applic (une applet).
1 2 3
| WBThumbnailDialog thumbnailDialog = new WBThumbnailDialog((Frame)SwingUtilities.getAncestorOfClass(Frame.class, this),this.moteur.getJSVGCanvas());
//WBThumbnailDialog est une fille de ThumbnailDialog, elle même fille de JDialog |
J'aimerais pouvoir faire:
jPanelInfos.add(thumbnailDialog);
Mais j'ai l'exception:
Exception in thread "AWT-EventQueue-1" java.lang.IllegalArgumentException: adding a window to a container
Il y a t'il un moyen d'intégrer une JDialog dans un JPanel?
PS: Je précise qu'un sujet porte le même titre, mais c'est pas du tout le même problème:
http://www.developpez.net/forums/sho...hlight=jdialog
Partager