Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

is it posible to reuse the JLabel component?

 
arun mahajan
Ranch Hand
Posts: 305
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I was wondering if it is possible to resue the JLabel component. As in following code snippet I tried using same JLabel component by keep on adding again and again. but it is ading only last one.
Am I trying something wild? Or this is real possible?
any comment?
regards,
Arun

 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Arun,
It is not possible to reuse a component because it can only be in one place at one time. By adding a component we are not copying it but just placing it. Therefore, a single component can't be in different places at the same time.
Kind of like humans ...
Regards,
Manfred.
 
arun mahajan
Ranch Hand
Posts: 305
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply Manfred. and thank god there is some area where program behaves with limitation like we Human..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!