Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 321
  • Last Modified:

awt classes in browser

I am using awt classses from applet (jdk1.1). Browser like Netscape dose not support jdk1.1 awt like setSize, setBounds methods of Component class. For That i have to use java plug-in for awt which supports awt jdk1.1 .
I have put all gui classes and applet in web server. It is not good idea to install supporting awt java plug-in in every machine in internet.
If i put awt.jar file in html as a archive tag. Same error is coming like setSize() is not found in Component beacuase browser sees its own classes first.
So what is the best solution to run awt classes in browser ?
0
vanit
Asked:
vanit
1 Solution
 
diakovCommented:
If you install Netscape 4.5 it is a jdk1.1 compliant browser, as well as IE 4.x is.
0
 
heyhey_Commented:
your users just need to install newer browser version
Netscape 4.06 / 4.07 is Ok too.
0
 
vanitAuthor Commented:
Edited text of question
0
 
velevCommented:
if jdk1.1 is your target:
Netscape 4.05 and above  and IE4 works with setSize() and setBounds()

if you are using jdk1.2 then the plug-in is your choice

most browsers are loading classes as follows
1. try to load from their directories
for example Netscape search in C:\...\Netscape\Communicator\Program\Java\Classes
2. try to load from jar files
3. try to load from server from where is the applet
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now