This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • 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 )
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!