est-ce possible de charger une page HTML sur un composant TextArea et un javax.swing.text.html.HTMLDocument ?
1 2 3 4 5
| Container content = getContentPane();
HTMLDocument html;
JTextArea sw_html = new JTextArea(html = new HTMLDocument());
html.setBase(getClass().getClassLoader().getResource("ads.html"));
content.add(sw_html); |
Mais pourquoi je reçois une exception de resource?
java.util.MissingResourceException: Can't find resource for bundle sun.applet.resources.MsgAppletViewer, key appletpanel.badattribute.exception
Partager