Home Authors Source Download Execute Java!? Manual
 
 
DataPlot__ 
AUTHORS' 
COMMENTS
e-mail Visit our Home pages
mahmut@ug.bcc.bilkent.edu.tr Mahmut YILDIRIM 
velioglu@ug.bcc.bilkent.edu.tr Haydar Velioglu 
ulger@ug.bcc.bilkent.edu.tr S. Huseyin ULGER 

Is Java the 
       right choice?  
 
 
Portability:  
If you are looking for portability Java is not the right choice. First of all it has two (at least) major versions which are not compatible even with each other. Also the interpreters of the same version behave different than each other.  For example. the implementation of Scroll Bar is different in the PC version and the Sun version. 

With the MS Windows  environment running on PC the constructor for the scroll bar is called like 
sb = new Scrollbar (Scrollbar.VERTICAL); 
sb.setValues (0,Visible,0,Max); 
The semantics of these lines is : First create a vertical scroll bar and then set visible page length to Visible, maximum length to MAX. 

To get the same effect with the Sun XWindows implementation  you have to code the same lines as 
sb = new Scrollbar (Scrollbar.VERTICAL); 
sb.setValues (0,Visible,0,Max-Visible); 

For the Java to be portable its different implementations should behave in the same way to the same codes. 

Deprecation: 
The methods announced to be deprecated were those in the Java 1.0.x versions which were replaced with the new methods in the Java 1.1.x versions. 
We used the Choice component in our program. To remove all the items in the a Choice component there is the method remove ( index) in the Java 1.0.x versions.. This method is deprecated and does not exist in Java 1.1.x versions. Although this method exists in the JAva 1.0.x implementations it does not behave as expected.  
Another method in the choice component is removeAll() , but this method does not exist in the Java 1.0.x versions , and the Java 1.2 version. So you cannot use removeAll() and remove (index) methods if you want your code to work as expected in the Web Browser. 

Another method which is deprecated is the reshape() method which is replaced with setBounds() method. 
The worst of all is the deprecation of the handlEvent(...) method which is the most important method with event handling mechanism of Java. In order to remove the handlEvent(...) parts that you have written you have to change a lot of code and you have to part your handlEvent(...) function to a few more functions.