lien hypertexte dans drawString
Bonjour,
je voudrais inclure un lien html dans un splash screen avec drawScreen mais ce que j'ai tenté ne marche pas :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
try {
final SplashScreen splash = SplashScreen.getSplashScreen();
Graphics2D g = splash.createGraphics();
g.setComposite(AlphaComposite.Clear);
g.setPaintMode();
g.setColor(Color.BLACK);
g.drawString("Please visit our website at <a href=\"http://www.mysite.com\">http://www.mysite.com</a>", 110, 370);
splash.update();
try {
Thread.sleep(3000);
} catch (InterruptedException e) {}
splash.close();
} catch (NullPointerException e) {
System.out.println("Splash Screen image not found");
} |
Tout ce que j'obtiens c'est qu'il affiche la commande html en plain text.
Quelqu'un a une idée? :)
Renaud