Click here to Skip to main content
15,897,187 members
Home / Discussions / Java
   

Java

 
Questionruntime exception Pin
pelach111-Apr-10 21:40
pelach111-Apr-10 21:40 
AnswerRe: runtime exception Pin
Nagy Vilmos12-Apr-10 11:19
professionalNagy Vilmos12-Apr-10 11:19 
AnswerRe: runtime exception Pin
TorstenH.12-Apr-10 20:15
TorstenH.12-Apr-10 20:15 
QuestionApplet Button thru HTML Pin
002comp11-Apr-10 19:49
002comp11-Apr-10 19:49 
AnswerRe: Applet Button thru HTML Pin
TorstenH.11-Apr-10 21:11
TorstenH.11-Apr-10 21:11 
GeneralRe: Applet Button thru HTML Pin
002comp11-Apr-10 22:33
002comp11-Apr-10 22:33 
GeneralRe: Applet Button thru HTML Pin
002comp12-Apr-10 0:15
002comp12-Apr-10 0:15 
GeneralRe: Applet Button thru HTML(Solved) Pin
002comp12-Apr-10 1:05
002comp12-Apr-10 1:05 
Hello guys
I got it .
To control java methods with javaScript code when u have jar file then just define ur applet tag in html like this

<applet code = 'packageName.MainClassName' 
    archive = 'test.jar', 
	id='viewer',
    width = 200, 
    height = 200 />

</applet>
<input type="button" value="Animate" onClick="pass();">

function pass()
{ 
	
	var tViewer = document.getElementById('viewer');
	tViewer.methodName();
	
	
	
}


Like this,u can call whatever method u want to call.
QuestionLocking the size of window Pin
sangeeta200910-Apr-10 21:31
sangeeta200910-Apr-10 21:31 
AnswerRe: Locking the size of window Pin
Richard MacCutchan11-Apr-10 14:34
mveRichard MacCutchan11-Apr-10 14:34 
AnswerRe: Locking the size of window Pin
TorstenH.11-Apr-10 20:54
TorstenH.11-Apr-10 20:54 
Questionshortest remaining time first Pin
Blackberry8910-Apr-10 2:31
Blackberry8910-Apr-10 2:31 
AnswerRe: shortest remaining time first Pin
Richard MacCutchan11-Apr-10 14:34
mveRichard MacCutchan11-Apr-10 14:34 
GeneralRe: shortest remaining time first Pin
Blackberry8912-Apr-10 11:10
Blackberry8912-Apr-10 11:10 
GeneralRe: shortest remaining time first Pin
TorstenH.12-Apr-10 20:10
TorstenH.12-Apr-10 20:10 
AnswerRe: shortest remaining time first Pin
TorstenH.11-Apr-10 20:59
TorstenH.11-Apr-10 20:59 
Questionencrypting and decrypting an image Pin
glinseynew@gmail.com9-Apr-10 13:55
glinseynew@gmail.com9-Apr-10 13:55 
AnswerRe: encrypting and decrypting an image Pin
Richard MacCutchan11-Apr-10 14:32
mveRichard MacCutchan11-Apr-10 14:32 
QuestionSearch Array Pin
Blackberry899-Apr-10 8:58
Blackberry899-Apr-10 8:58 
AnswerRe: Search Array Pin
Nagy Vilmos9-Apr-10 10:13
professionalNagy Vilmos9-Apr-10 10:13 
GeneralRe: Search Array Pin
Blackberry8910-Apr-10 0:10
Blackberry8910-Apr-10 0:10 
QuestionResizing Button?? Pin
AmbiguousName7-Apr-10 7:51
AmbiguousName7-Apr-10 7:51 
AnswerRe: Resizing Button?? Pin
TorstenH.8-Apr-10 1:59
TorstenH.8-Apr-10 1:59 
Questionhow to find jre is installed or not? Pin
002comp6-Apr-10 23:09
002comp6-Apr-10 23:09 
AnswerRe: how to find jre is installed or not? Pin
002comp6-Apr-10 23:27
002comp6-Apr-10 23:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.