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!
dutaAsked:
Who is Participating?
 
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
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.