Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Seth Ford   on May 27 In Java Category.

  
Question Answered By: Blandina Garcia   on May 27

You're quite welcome. Sometimes, calling super.paint(g) is not necessary. It
depends on what you want your paint method to do. If you want to control how
everything is displayed, you can code  for it and leave the super class  out of
the process. If you want to enhance what the super class does by default, then
tell it to do it's thing then you can add to it with your own code. You
mentioned a call to repaint(). I wouldn't recommend doing that in the paint
method unless you really get a kick out of infinite loops.

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on why wont the textfield show up Or get search suggestion and latest updates.


Tagged: