How do I make a bean in netbeans using java

Posted on 2009-05-15
Last Modified: 2013-12-14
I am trying to make a newspaper game project that contains
1) jumble
2) crossword
3) celebrity cipher

I will work out the details of the above three games in a bit but I am not there yet.  I made a tabbed pane so you could choose to play any of the above games.  I THINK I have to make my three game programs into beans so they can be added to  the three tabbed panes.  I don't know how to make my programs into beans that may be added to the netbeans pallette.  Does anyone know how to make a bean?
Question by:dwcronin
  • 3
  • 2
  • 2

Expert Comment

ID: 24400247
A bean is an object with database persistence. Don't think that's really what you need. Start off by creating 3 JPanel forms. You can develop each one seperately in the form builder and then add them to your tabbed pane (jtabbedpane.add("Crossword", new Crossword())).

Author Comment

ID: 24400874
OK thanks.  Obviously I'm not real sure what a bean is.  What does database persistence mean?  I'll try to make the JPanel forms tonight.
LVL 86

Accepted Solution

CEHJ earned 500 total points
ID: 24402299
>>A bean is an object with database persistence.

There are various definitions of 'bean' and they vary according to context. That's one context, but not one that's relevant here. The one that is would define a bean as a java object that can be added as part of a component palette in an IDE.

You can do this using the Palette Manager in NetBeans. See
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.


Expert Comment

ID: 24402563
To add your panel to the palette you just have to right click it and do tools/add to palette

Author Comment

ID: 24403734
EE suggests to stay engaged with the experts helping you with your question.  I just want to let hazgoduk and CEHJ know that I haven't fallen asleep or anything - I just got sidetracked for a few hours and I'm working through the webpage from CEHJ.
LVL 86

Expert Comment

ID: 24403920
OK ;-)

Author Closing Comment

ID: 31582130
The current version of netbeans that I have is 6.5 and the web site is for a couple versions back.  After I figured that out, I realized what the very small problem was.

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
network + 7 73
array11 challenge 16 52
Starting to learn JAVA, 7 48
Java passing arguments (type error) 2 35
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now