• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

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

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 )
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic