• Post Reply Bookmark Topic Watch Topic
  • New Topic

Paint and Keylistener not working in Applet  RSS feed

 
mohamed zafer
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
I have developed an applet similar to a login screen. I have developed a status bar extending canvas. I am overwriting the paint method to set my preferences. The component works fine in application, but the same one does'nt work in a applet. I tried to debug it and found that the paint method of the canvas does'nt get invoked at all. What could be the reason for this.
Also I have added a KeyListener to a textField, but it does'nt work in the applet. Why is it so.
Hoping for a reply at the earliest.
Mohamed Zafer

 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would help if you posted your code...

-Nate
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!