NetBeans create and instantiate programatically custom swing widgets
Posted
by RenegadeAndy
on Stack Overflow
See other posts from Stack Overflow
or by RenegadeAndy
Published on 2010-05-23T23:40:00Z
Indexed on
2010/05/23
23:40 UTC
Read the original article
Hit count: 226
Hey!
I have a problem I know how I would solve easily developing under eclipse - but not so easily developing under net beans.
I want to create a custom swing widget - which I can instantiate by code as many as I need and attach them to my main panel.
I have developed the rest of the GUI using the GUIBuilder.
The problem is - im not entirely sure how to do this.
Say I got 20 results back from a web service,
I would wana loop round - and add 20 of these custom swing widgets - the custom swing widgets would look as follows :
:Picture: :Label: :Label:
Can anybody please help me, im not entirely sure how to do the custom widget either!
Thanks in advance for any support.
Andy
© Stack Overflow or respective owner