Originally posted by Valentin Crettaz:
So I think changing the highlight color "could" be done, but it would be risky since you would have to in some way modify Sun's classes by subclassing them, and hoping that the underlying platform supports what you are asking it to do... it might be worth trying, though. I'd do it...
Is it possible ? ...
This excerpt is from CLDC1.0 spec ... but lcdui package is not a CLDC class, but MIDP
3.4.2.2 Protecting system classes
A central requirement for CLDC is the ability to support dynamic downloading of
Java applications to the virtual machine. An obvious security hole in the Java virtual
machine would be exposed if the downloaded applications could override the
system classes provided in packages java.*, javax.microedition.*, or other
profile- or system-specific packages. A CLDC implementation shall ensure that the
programmer cannot override the classes in these protected system packages in any
way. At the implementation level this can be guaranteed in different ways,
depending on whether or not the implementation supports preloading/prelinking of
system classes (see Section 5.4, �Classfile format and class loading.�) One solution is
to require system classes always to be searched first when performing a classfile
lookup. For security reasons, it is also required that the application programmer is
not allowed to manipulate the classfile lookup order in any way. Classfile lookup
order is discussed in more detail in Section 5.4.3, �Classfile lookup order.�