Boa dia a todos.
Venho mais uma vez com duvidas sobre o meu editor de texto, estou querendo saber se consigo colar “IMAGENS” e “TABELAS” nele.
// RTFEditorKit rtfEditor
this.rtfEditor = new DefaultRTFEditorKit();
rtfEditor.initializeDefaultFont();
// JEditorPane editorPanePrincipal
this.editorPanePrincipal = new JEditorPane();
this.editorPanePrincipal.setEditorKit(rtfEditor);
// JScrollPane scrollPanePrincipal
this.scrollPanePrincipal = new JScrollPane();
this.scrollPanePrincipal.setBounds(6, 45, 632, 360);
this.scrollPanePrincipal.setPreferredSize(new Dimension(514, 340));
this.scrollPanePrincipal.getViewport().add(this.editorPanePrincipal);
this.panelPrincipal.add(this.scrollPanePrincipal);
é um JEditorPane com RTFEditorKit como visto no código.
Grato.