Creating a 3-slider bean using Bean Builder

I'm trying to create a 3-slider color chooser in Bean Builder, and I have numerous questions, since I'm a complete n00b to beans and Bean Builder. I add 3 JSliders to the bean design area, and a JPanel, then I drag the arrows from the sliders to the panel, so far I think that is right. I need to change the background color of the panelusing one slider for each of the color components red, green, and blue, butthe best I can find in the event chooser for source is propertyChanged() and for target setBackground(). How do I tell the bean that the value variable is used for each slider as it's color variable? How do I tell the panel that I wan't it to repaint after every slider adjustment, and to get the components of the new Color from the values of the 3 sliders? Is there a default non-visual bean model I can use? I'm somewhat familiar with the Model-View-Controller design pattern, and I've worked through the tutorial, but I can't seem to figure outwhat I need to do here. Also, when I'm done I'd like to create a jar and an applet, I'm not really sure what to do with the XML file that is created, not to mention the size of the XML file is 0 bytes (this may be because of a problem using 5.0 instead of 1.4, from what I can glean from other forum posts). Can Bean Builder automate the creation of applets? Thanks in advance.
      
 BTW if anyone can give me the answer using eclipse Visual Editor, NetBeans 1.5 or beanbox (bdk1.1) instead, this will work just as well.
suprslackrAsked:
Who is Participating?
 
suprslackrAuthor Commented:
Thanks for your reply shivaspk. I know how to do all the things listed on those links. I can get the components set up, but I can't get the events to work right. This is true of the eclipse plugin called Visual Editor, the NetBeans editor for JavaBeans, and Bean Builder. As for BDK1.1, I can't even seem to create a simple slider bean to work with in the beanbox. I know how to make the jar, create the manifest file, and bind properties to beans that are already created, but I can't seem to create a bean that, once jarified, can be loaded and be visible in the beanbox. As you can see, depending on what program I use, I have slighty different problems. I would consider a step-by-step guide to creating the bean (or the Java code to create the jar if beanbox) in one of these editors, plus how to create an applet from the resulting bean, a solution for which I would reward the contributor 500 points. Thanks again, if you think of something else, please let me know. -supr
0
 
suprslackrAuthor Commented:
I figured out how to do it with bdk1.1 . Since nobody's posted with suggestions since shihvaspk posted those links, I guess I'll wait a few days and then request a PAQ. If anyone can tell me how you'd do this with Bean Builder, then create an applet with Bean Builder, I'll go ahead and give you the points, just because it would satisfy my curiosity. If nobody writes back by 5/10, I'm goin to try to get my points back. -supr
0
 
suprslackrAuthor Commented:
I'd like to get a PAQ.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.