+ 3
Class Link in JOptionPane
Hey there! I want to make a JOptionPane.showMessageDialog, which has a link which runs another class. For example JOptionPane.showMessageDialog(null, „Click here!“); If you click on the text, another class will be ran. Is there any way to do this, maybe with an HTML link? Thank you very much for your help!
4 Réponses
+ 6
A dialog window labeled open browser with a positive answer (if Yes, it will) the browser will start with a link to any site.
You can use ProcessBuilder to do this
You create it and specify the way to the file and a comma-separated link then the process.start
I hope this helps you .
Translated by google
+ 6
All of this in "try"
+ 1
Okay, other question:
Is it possible to run a Java class with HTML (eg if the location of this class would be in the same script)
+ 1
AND is it possible to run a HTML/JS/CSS Script in a java file??