Solved

Java: How to nest A GridLayout in a BoderLayout

Posted on 2009-03-28
6
341 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
  • 4
  • 2
6 Comments
 
LVL 12

Accepted Solution

by:
basav_com earned 500 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
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.

 

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

837 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