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 8700051
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T02:05:53+00:00 2026-06-13T02:05:53+00:00

I am making a simple maze program where the user can create walls, paths,

  • 0

I am making a simple maze program where the user can create walls, paths, the start and the finish, click solve and the maze will be solved. To do this I have a java JFrame with the size 640×480. On the left side of the JFrame I have a JPanel with top left coordinates of 0,0 and the size is 480×480. This is the area where the maze will be drawn and where the user can specify the walls and paths. The problem I have is when I start adding buttons and radio buttons on the right side of the screen. Every layout I use (such as boxlayout, springlayout, flowlayout or grid layout) does not seem to do what I would like. I would like to have the JPanel stay were it is (on the very right with the size 480×480) and have the buttons arranged top-down starting at 480 (because this is where the JPanel ends). What I am thinking I need is ton specify where the layout starts and not to automatically arrange the JPanel. Is there any way that I can do this? Or do I just need to have a null layout?

  • 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-13T02:05:55+00:00Added an answer on June 13, 2026 at 2:05 am

    take a look at this answer of mine:

    Positioning of components (how to place a few buttons center screen same size)

    Jframe not the right size when its executed, any reason why?

    What you want to do is have a JPanel 480×480 over a set of radio button.
    Just use a BoxLayout with PAGE_AXIS and follow my guide in the link.

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

Sidebar

Related Questions

Making a simple program which will generate a multiple choice form. I have an
Making a simple application, so when the user logs out of Windows, it of
How to create simple post/get API making simple calling to GAE database using Google
I am making simple ANSI C program, that simulates Unix shell. So I am
When making a simple WYSIWYG editor with JavaScript for a textarea I can check
I am making simple application that will take hotel name and price of item,
In the process of learning Prolog I'm making simple program which given some thing
I'm making simple webcam program using OpenCV 2.3 and got stuck by the compile
I'm making simple webcam program using OpenCV 2.3 and got stuck by the runtime
Im making a simple programm for android, what can add, read and write text

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.