SMARTTEXTFIELD 1.2 NOTES

Java links  |  SmartTextField demo  |  Sample code  ]


Why SmartTextField?                             

This is a bug-fix for some versions of the JDK 1.0.2 runtime, specifically Mac and Win32 ones. According to Sun's "Java Workshop" FAQ:

14.Is the TAB key supported under Win95? It works OK under Solaris. This was a regression in JDK 1.0.2 (the callback of TextField focus tracking
mechanism was not implemented) and has been fixed in the final
product. By the way, , we also fixed the Win32 input focus problems for
TextArea, Button, and Frame besides TextField in the next release.

SmartTextField also contains code to add consistent Shift-Tab behaviour which should work on all platforms. Once JDK 1.1.1 is released on all platforms I will delete the bug-fix code and leave just the Shift-Tab enhancement.

These behaviours are available for any subclass of java.awt.Component to implement via the RetroFocusable interface, but descendants of Container should not implement this interface ~~ the search routines will fail if they do. The RF utility class provides search methods for determining which RetroFocus-implementing Component should receive the focus next.


3 May 97 ~~ After weeks of effort, I have concluded that the various browsers' various implementations on various platforms of Java's Abstract Windowing Toolkit are ALL so buggy, and so idiosyncratically buggy, that there is no point in trying to provide further workarounds. Sooner or later, Sun, Netscape and Microsoft will fix these bugs, and then we won't have this bother. It's been a productive learning experience though. I reckon I now know Java through and through. The language clearly has enormous potential, and I like it too. A really cool language, well thought out and well designed.

Currently, this applet behaves completely correctly only under Netscape Navigator 3.x for Macintosh.

For the rest, NN 3.x for Win32, and MS Internet Explorer 3.x for both Mac and Win32, all demonstrate at least some of the features correctly and do not crash, but also miss out some functions ~~ eg MSIE for Win32 doesn't change the rectangle's color (an acknowledged bug with java.awt.Component.update()), NN for Win32 lets you shift-tab out of all fields correctly but only lets you tab out of some fields, and MSIE for Mac moves the focus to the address bar whenever you press Tab. There it rests for now.


Feedback                             

THANK YOU, one and all! It's great to hear from you. I simply can't test on all the available Java runtimes on all the popular platforms. Your feedback is invaluable.

Compatibility of earlier versions of this class with various runtimes as I understand it at the moment:


MACOS RUNTIMES

Apple MRJ 1.0 AppletRunner

Sun JDK 1.0.2 Applet Viewer (and Symantec Café Lite's AppletViewer, which looks like a straight rebadge of Sun's)

Netscape Navigator 3.0x

Microsoft Internet Explorer 3.0x using either Apple MRJ VM or MS/Metrowerks VM

 


WIN32 RUNTIMES

 


SGI/IRIX RUNTIMES

 


SOLARIS RUNTIMES

 


LINUX RUNTIMES

 


AIX RUNTIMES

 


HP/UX RUNTIMES



Top of page
Cool IT in Africa Site design by Phil Hudson. Comments? Email phil.hudson@iname.com.
Top of page