Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 363
  • Last Modified:

Java: How to nest A GridLayout in a BoderLayout

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
duta
Asked:
duta
  • 4
  • 2
1 Solution
 
basav_comCommented:
0
 
dutaAuthor Commented:
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
 
basav_comCommented:
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
dutaAuthor Commented:
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
 
dutaAuthor Commented:
Please ignore my immediate post, which should have been posted in my latest question.
0
 
dutaAuthor Commented:
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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now