dcsimg
why is that my applet could be seen by appletviewer but cann't work in IE?
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   wan_ping
Posted On:   Wednesday, March 27, 2002 12:35 AM

my program is below. import java.awt.*; import java.applet.Applet; public class drawDemo extends Applet { private Button rectangleButton; private Button squareButton; private Button lineButton; public void init() { rectangleButton = new Button("rectangle"); squareButton = new Button("square"); lineButton = new Button("line"); setLayout( null ); add(rectangleButton); add(squareButton); add(lineButton); rectangleButton.reshape(20,20,60,30);    More>>

my program is below.


import java.awt.*;

import java.applet.Applet;

public class drawDemo extends Applet

{

private Button rectangleButton;

private Button squareButton;

private Button lineButton;

public void init()

{

rectangleButton = new Button("rectangle");

squareButton = new Button("square");

lineButton = new Button("line");


setLayout( null );

add(rectangleButton);

add(squareButton);

add(lineButton);

rectangleButton.reshape(20,20,60,30);

squareButton.reshape(90,20,60,30);

lineButton.reshape(160,20,60,30);

}

}

   <<Less

Re: why is that my applet could be seen by appletviewer but cann't work in IE?

Posted By:   M_Reifling  
Posted On:   Wednesday, April 24, 2002 05:53 AM

Works fine my me... both in Netcape 6 and Explorer 6

I have MS SDK for java 4.0 & Java 2 Runtime Environment std v. 1.3.1 installed...

Don't know if it would help...

Re: why is that my applet could be seen by appletviewer but cann't work in IE?

Posted By:   Srinivasan_Raman  
Posted On:   Tuesday, April 16, 2002 05:36 AM

Well, I doubt if somethig is wrong in the HTML code calling the class file.Check out if a sample applet runs fine with Ur browser.



Sriram
About | Sitemap | Contact