+ 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!

9th Mar 2019, 3:12 PM
TCB
TCB - avatar
4 Answers
+ 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
11th Mar 2019, 4:35 PM
Ilya R
Ilya R - avatar
+ 6
All of this in "try"
11th Mar 2019, 4:38 PM
Ilya R
Ilya R - avatar
+ 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)
12th Mar 2019, 3:10 PM
TCB
TCB - avatar
+ 1
AND is it possible to run a HTML/JS/CSS Script in a java file??
12th Mar 2019, 5:15 PM
TCB
TCB - avatar