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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:31:12+00:00 2026-06-15T10:31:12+00:00

Is it possible to add maximize/minimize button to the JDialog? if not then can

  • 0

Is it possible to add maximize/minimize button to the JDialog? if not then can we add these buttons to JPanel?

I have a JPanel and inside that panel there is a JDialog.I want to add a minimize/maximize button such that when that button is clicked JDialog and the components under JDialog get adjusted according to the JPanel.
like when i click maximize then jpanel should get enlarged and components inside that panel(JDialog) also get enlarged and vice versa for minimize button.
The solution I got from here is for JPanel inside a JFrame. But my JPanel is standalone only.

  • 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-15T10:31:13+00:00Added an answer on June 15, 2026 at 10:31 am

    Is it possible to add maximize/minimize button to the JDialog?

    • not, don’t do that, (even there are a few dirty hacks) you can to JDialog.setUndecorated and add required Windows decoration back, notice resources for JDialog/JWindow came from Native OS, valid for SystemLookAndFeel only and could be CrossPlatform sensitive

    if not then can we add these buttons to JPanel?

    • yes, but you can to use JOptionPane and with modified contents, there you can put any JComponents and/with returns value too
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to add a Button next to the Close/Minimize/Maximize-Buttons on the Window
Hey is there anyway that in your program you can add a minimize/ maximize
is it possible to add a notification to the lockscreen that will not disappear?
Is it possible to add button click event by clicking design of axml? if
Is it possible to add to PHP objects on the fly? Say I have
Is it possible to add an image(view) on top of a button (which as
Is it possible to add a form to an email newsletter? I have tried
Possible Duplicate: Add 1 hour to datetime datatype I have a timestamp stored in
Possible Duplicate: How is possible add child to the specific node how i can
Possible Duplicate: Add picture at facebook event with Graph API I have been trying

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.