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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:51:13+00:00 2026-06-18T01:51:13+00:00

I have had a reasonable amount of experience in Java SWING development and trying

  • 0

I have had a reasonable amount of experience in Java SWING development and trying to simplify updates to the program. I have a basic menu (group of JButtons) which I would like at the top of every window (JFrame) displayed, instead of trying to maintain these buttons on each individual Frame I was wondering if it was possible to create one JPanel and “import” it into multiple JFrames, similar to how you can “include” in php (Bad example but best I can think of)

Added after suggestion from first response

I currently have a JPanel on my frame titled topPanel and for the initiation of this I have:
topMenuPane = new menuPanel();
where menuPanel is a class extending JPanel however the buttons and values in the menuPanel class are not displaying in the JFrame.

  • 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-18T01:51:14+00:00Added an answer on June 18, 2026 at 1:51 am

    You could…

    Extend JFrame and create a base frame all you applications must use.

    For – Easy to maintain; centralized implementation; other developers don’t need to remember to do the “setup”

    Against – Tightly coupled to an implementation, may not be easy to extend for other developers (that might need to use the API).


    Use a “WindowFactory” that generated the JFrame that all you applications use to generate there base frames.

    For – Easy to maintain; centralized implementation; other developers don’t need to remember to do the “setup”

    Against – There is still the possibility that other developers may “choose” to not use it

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

Sidebar

Related Questions

I have had been on a roller coaster trying to get ImageMagick to work
I have done a reasonable amount of searching about getting information on slow queries,
I've been porting a big chunk of Java code to C++ and have had
I have had an online archive service for over a year now. Unfortunately, I
I have had to compile my app for the 4.0 sdk to run on
I have had a persistent problem with Visual Studio 2010 and any framework version
I have had this problem crop up a few times and I can't figure
I have had a look all over, but it doesn't seem as though my
I have had several situations when i would like to do that. This could
I have had Delphi 2007 for a while. I tried the Delphi 2009 trial.

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.