Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Lightweight component  RSS feed

 
kirba devi
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
i want to create a component say button(not in rectangular shape) so i go for creating a lightweight component.every java people knows how to create a lightweight component.
what my doubt is while creating a lightweight component why we need to override getPreferredSize(),getMaximimumSize(),getMinimumSize() of Component class in our class...
Regards
Kirba
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!