开发者

call javascript alert from java class [closed]

开发者 https://www.devze.com 2023-01-20 23:11 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reop开发者_如何学编程ened, visit the help center. Closed 12 years ago.

How to call javascript alert from java class


I can't know for sure, but if you want to make a Java Applet and Javascript interact, try these:

Java-to-Javascript Communication

Java - Javascript interaction


Perhaps you are looking for a message box similar to the Javascript alert() box? Then use

javax.swing.JOptionPane.showMessageDialog(null, "hello");
0

精彩评论

暂无评论...
验证码 换一张
取 消