473,419 Members | 1,831 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,419 software developers and data experts.

Add two copies of a JPanel to a program's main JPanel with Netbeans GUI editor

Using the Netbeans design editor I have created a JPanel (as "public class LengthPanel extends javax.swing.JPanel {...}" ) containing a few items. Now I want to place two copies of that panel into the JPanel of the main form of my program. How do I do this? Part of my problem is not knowing the what question to ask of web search engines.

What I really want is a have data entry gadgets for height and width. Each value can be entered as metric (needing one number) or imperial (two numbers) values with its own JComboBox to choose. I want to design and code one length-entry gadget and have two copies of it. It seems easy to make a JPanel to do what I want, but I have not found any discussion of how to make two copies of that panel. Perhaps I should base my gadget on something other that a JPanel; but if so, what?

Using Netbeans 6.9
Jul 21 '10 #1
0 1230

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Guruz | last post by:
hi C gurus do anyone of u know how to write a program in C without main and still create a executable out of it. Remember, I said no main() function not in -->include files -->libraries -->no...
16
by: leeaby | last post by:
Hi, I will appreciate your assistance. Can we write a c code which do not contain main() I have heard that this is possible. Is it really possible? Thanks for your help in advance lee
13
by: robinsonreyna | last post by:
Hi everyone Is it possible to write a program which do not have a main() function. The program should compile and run. Please give sample code to do this.
4
by: TwistedPair | last post by:
All, Been trying to get a little program to work, and I think I'm really close, but I'm afraid I need to be pointed in the right direction. The code below will watch a directory for files...
4
by: bagkalyan | last post by:
please help me.. Yes it is possible to write a program in c without using main. Here is the code: /* prog_without_main.c */ _start() { _exit(my_main()); } int my_main(void)
3
by: zaidalin79 | last post by:
I have finally gotten my GUI to look like I want it to, but I am having trouble getting the calculations right. No matter what I put in there, it seems to calculate a large payment, and a very wrong...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.