• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

wats happening with g.drawString(message,40,40)

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
first i use jbuilder 2(JDK1.1) to write the html file and java class. then i run it and the message is displayed. but when i use ie5 to view it, the message is not displayed. wats happening? Thanks and best regards.
 
Pawel Veselov
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The idea of redrawing an AWT component is that you either place somw another component on it, that can redraw itself or you get an access to component's graphics, that you should everytime you get repaint() called.
In other words, you have to modify paint(Graphics) method to draw any 2D objects on a Component each time JDK wants to repaint the window.

------------------
With best of best regards, Pawel S. Veselov ( aka Black Angel )
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic