?
Solved

Java: How to nest A GridLayout in a BoderLayout

Posted on 2009-03-28
6
Medium Priority
?
354 Views
Last Modified: 2012-05-06
Hi experts:

I would like to learn how to nest a GridLayout in a zone of a BorderLayout.

I will much appreciate if you may give a sample code which demonstrates how to accomplish that.

Thank you in adavnce!
0
Comment
Question by:duta
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 12

Accepted Solution

by:
basav_com earned 2000 total points
ID: 24011457
0
 

Author Comment

by:duta
ID: 24011475
Master, thank you so much for your kind, prompt tip.

I know how to use basic layouts, such as FlowLayout, BorderLayout, GridLayout.

But I do not know how to nest one in another.

I  am particularly interested in learning how to nest GridLayout in a zone of BorderLayout.

Thanks!
0
 
LVL 12

Expert Comment

by:basav_com
ID: 24011508
One would typically go for GridBagLayout for such requirements.

or create individual panels of your requirment layout and embed these panels into the Frame.
0
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!

 

Author Comment

by:duta
ID: 24011678
Thank you very much, Master.

I already created three separate listeners classes, one each for Radio Buttons, Check Boxes, and buttons (compute, clear, exit ).

From each of the listeners, I get inputs from the user.  

I need to compute, using the user inputs.
What I would like to know is:  How to combine the user inputs from the three different listener classes.

Thanks!
0
 

Author Comment

by:duta
ID: 24011681
Please ignore my immediate post, which should have been posted in my latest question.
0
 

Author Comment

by:duta
ID: 24011685
Using your tip, I already figured out how to nest one layout in another. Thanks!
I just posted a new question regarding how to combine and compute user inputs from different types of listeners.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

764 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