post your comment   print   send to a friend
Rate:   0% | Views: 195
Question categories:  Java

I often see the wrong font come up while using Netscape 3.01 to draw text to a window utilizing Graphics drawString. Why?

This is a known bug in Netscape's Java implementation on Win32.

You can get around it by not having multiple "graphics" objects in use at the same time. That is, you are probably creating an image, getting the graphics, drawing the text, and then copying the image into the canvas (or panel), while in the paint mode. Try disposing the paint method's graphics object before getting the graphics object for the image, and then draw the text on the image, dispose the graphics object for the image, and call "getGraphics" to paint the image to the canvas.


Customer Feedback
Rate:   0% | Views: 195 | Please Rate:  
 
If you have other comments or ideas for future technical tips, please type them here:

Email: (optional)

Comments: (optional)

 Dedicated Server Host | Email Hosting    Back to serch results
Browse the Base
Knowledge Base
Web Design
  Do It Yourself
    Java
Messages
 

Blogging at Aplus.Net

Don't forget to check out our blog ! Keep up to date at Aplus.Net.

Private Area
 
Ask
in Private
   
Personal
Folder
 
Related Questions
 
1. How do I access Servlets or CGI programs from Java?
 
2. My applet computes its window size. Can I resize it in the browser?
 
3. How do I communicate between my applets in the same browser?
 
4. How do I force the browser to reload my Java classes without exiting Navigator?
 
5. Why does my java console show an applet is pruned?
 
Home Browse Search Ask in Private Personal Folder   Help
powered by web hosting 
  Logged as: Guest