[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Creating a 3-slider bean using Bean Builder

Posted on 2006-04-30
4
Medium Priority
?
309 Views
Last Modified: 2013-11-21
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.
0
Comment
Question by:suprslackr
  • 3
4 Comments
 
LVL 23

Accepted Solution

by:
Siva Prasanna Kumar earned 1000 total points
ID: 16575177
0
 

Author Comment

by:suprslackr
ID: 16575255
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
 

Author Comment

by:suprslackr
ID: 16627239
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
 

Author Comment

by:suprslackr
ID: 16652617
I'd like to get a PAQ.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses
Course of the Month19 days, 5 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question