Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

JEditorPane et liens html

3 réponses
Avatar
yvon.thoravalNO-SPAM
je charge dans un JScrollPane un JEditorPane qui charche une page html
(fichier d'aide), ça ca marche.

Mais quand je clique sur un bouton html rien ne se passe, je dois
implémenter qqc ?

--
yt

3 réponses

Avatar
Emmanuel Puybaret
Bonjour Yvon,

je charge dans un JScrollPane un JEditorPane qui charche une page html
(fichier d'aide), ça ca marche.

Mais quand je clique sur un bouton html rien ne se passe, je dois
implémenter qqc ?


Pour gérer les liens hypertexte (et probablement les formulaires), il faut
implémenter l'interface HyperlinkListener.
Voir http://www.eteks.com/tips/tip3.html pour un exemple.

Bye
--
Emmanuel PUYBARET
Email :
Web : http://www.eteks.com
Auteur du Cahier du programmeur Java 1.4 et 5.0 / Editions Eyrolles :
http://www.eteks.com/services/cahierjava.html

Avatar
yvon.thoravalNO-SPAM
Emmanuel Puybaret wrote:

Pour gérer les liens hypertexte (et probablement les formulaires), il faut
implémenter l'interface HyperlinkListener.
Voir http://www.eteks.com/tips/tip3.html pour un exemple.


OK, merci beaucoup, je vai pouvoir implémenter simplement ma fonction
d'aide...
--
yt

Avatar
yvon.thoravalNO-SPAM
Emmanuel Puybaret wrote:

Voir http://www.eteks.com/tips/tip3.html pour un exemple.


Merci encore, ça marche très bien mais pour une seule frame :

-------------------------
| | |
| | |
| | |
| | |
-------------------------

J'ai essayé des frames imbriquées :
-------------------------
| | |
| -------------------|
| | | |
| | | |
| | | |
-------------------------
mais les liens ne marchent pas sur les frames imbriquées, uniquement sur
la première colonne de gauche.

C'est une limitation connue ?

(j'ai testé sur un browser "normal" avant...)


--
yt