Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8915917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:06:01+00:00 2026-06-15T05:06:01+00:00

Hello i am beginner in jav and coding Address Book in Java , for

  • 0

Hello i am beginner in jav and coding Address Book in Java , for that i am using GridBagLayout . see attached image for JTextArea coordinates are gridx=0 ; gridy=0 and for JButton1 gridx=1; and gridy=0; but i am confused for Jbutton2 as i did try gridx=1 and gridy=1 but (did try other sol as well ) but that is not plotted in right place as shown in image attached .. please can someone clarify me this i am really stuck int it !i did this picrue in paint to show what i am trying to do ,

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T05:06:02+00:00Added an answer on June 15, 2026 at 5:06 am

    GridBagLayout isn’t that friendly when you are just beginning to learn about layout managers. You should start with simpler layout managers such as BoxLayout or even GridLayout.

    Here’s an excellent visual comparison of layout managers and what they do .

    For example, you can use a BoxLayout (Vertical) for your JFrame and first divide up your JFrame into 2 JPanels. We’ll call these 2 JPanel’s top and bottom:

    • top can hold the JTextArea, JButton1,2,3
      • top itself can use a BoxLayout (Horizontal) to manage / hold 2 JPanels within itself: top_left and top_right
      • top_left can hold the JTextArea, and not need a layout manager since it has a single element.
      • top_right can hold JButtons 1-3, and again use a BoxLayout (Vertical)
    • bottom can hold JButton4,5 and JTextField

    Hopefully this is enough to show you the hierarchical idea of how a Java GUI is decomposed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello :) I am beginner in Java Swing and I can't google solution for
I am a beginner in Java and am doing an exercise from a book.
hello i'm a beginner java developer and this is one question in a list
Hello guys I'am beginner of the Java and my English is not good, i
Hello guys I'am beginner of the Java and i've got some problems with array&arraylist.
Hello everyone I'm a beginner in MVC3. My question is about using class. I'm
I am a Ruby beginner. From the book, I know that a Ruby method
Hello I'm a Django Beginner. I have a calendar that I want to be
I'm a Java beginner. I already created a simple GUI application that display will
Hello i am an absolute beginner on cloud computing and on python. I would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.