Solved

awt classes in browser

Posted on 1999-01-28
4
310 Views
Last Modified: 2013-12-29
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
Comment
Question by:vanit
4 Comments
 
LVL 8

Expert Comment

by:diakov
ID: 1234860
If you install Netscape 4.5 it is a jdk1.1 compliant browser, as well as IE 4.x is.
0
 
LVL 16

Expert Comment

by:heyhey_
ID: 1234861
your users just need to install newer browser version
Netscape 4.06 / 4.07 is Ok too.
0
 

Author Comment

by:vanit
ID: 1234862
Edited text of question
0
 
LVL 1

Accepted Solution

by:
velev earned 50 total points
ID: 1234863
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This video teaches viewers about errors in exception handling.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now