This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Rendering of text on canvas in jdk1.4  RSS feed

 
pasumarthi Suresh
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
We have a Java applet written with mostly Jdk1.0 ... which works fine with
native JVM's of netscape 4.75 and IE5.5 browsers.
But when I use latest JPI1.4 and above, I find the content on the screen is not rendering properly unless I mouse move over it.
When I build, I get the following warnings
Can someone suggest is this deprecated API's that is causing the problems when we execute applets with the latest JPI.
What can be the workaround ???
warning: addItem(java.lang.String) in java.awt.List h
as been deprecated
loa.addItem(cs);
^
warning: delItem(int) in java.awt.List has been deprecated
list1.delItem(ind2-i);
^
warning: delItem(int) in java.awt.List has been deprecated
list1.delItem(ind);
^
^
warning: mouseUp(java.awt.Event,int,int) in java.awt.Compo
nent has been deprecated
public boolean mouseUp(Event ev, int x, int y) {
^
warning: mouseDown(java.awt.Event,int,int) in java.awt.Com
ponent has been deprecated
public boolean mouseDown(Event ev, int x, int y) {
^
warning: mouseDrag(java.awt.Event,int,int) in java.awt.Com
ponent has been deprecated
public boolean mouseDrag(Event ev, int x, int y) {
^
warning: keyDown(java.awt.Event,int) in java.awt.Component
has been deprecated
public boolean keyDown(Event ev, int key) {
^
warning: keyDown(java.awt.Event,int) in java.awt.Component
has been deprecated
return super.keyDown(ev, key);
^
warning: mouseEnter(java.awt.Event,int,int) in java.awt.Co
mponent has been deprecated
mouseEnter(ev, ev.x, ev.y);
^
warning: mouseExit(java.awt.Event,int,int) in java.awt.Com
ponent has been deprecated
mouseExit(ev, ev.x, ev.y);
^
^
warning: getPeer() in java.awt.Component has been depreca
ted
return getPeer() != null;
^
warning: encode(java.lang.String) in java.net.URLEncoder
has been deprecated

warning: encode(java.lang.String) in java.net.URLEncoder
has been deprecated
urlst += ("&" + fid + "=" + URLEncoder.encode(getFieldVal(row, f
id)));
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!