true type fonts - Java TrueTypeFont -


i'd use truetypefont class sun.font.truetypefont package in applet, eclipse keeps complaining constructor not being visible:

import sun.font.truetypefont; . . .     new truetypefont("a", new object(), 1, false); 

yields:

    - constructor truetypefont(string, object, int, boolean) not visible 

is there way fix this? there way cast font class truetypefont? need data provided methods of truetypefont.

you have multiple problems there:

  • sun.font.truetypefont implementation class shouldn't playing around with.
  • it's constructor "package private" (default access) means can't access package (which eclipse happens telling you).
  • even if access it, [untrusted] applet cannot access sun.* classes (controlled package.access security property).

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -