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

  • Home
  • SEARCH
  • 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 6061691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:57:57+00:00 2026-05-23T08:57:57+00:00

I have integrated this Jfreechart Bar Demo with my swing application. I have put

  • 0

I have integrated this Jfreechart Bar Demo with my swing application.
I have put the following code in the action performed method of a button, this code was previously in the main method of the Bar Demo class.

final BarChart3DDemo3 demo = new BarChart3DDemo3("3D Bar Chart Demo 3");
        demo.pack();
        RefineryUtilities.centerFrameOnScreen(demo);
        demo.setVisible(true);

This is generating the Bar Chart. But on closing the Bar chart Window. My Whole application is getting closed.

I have tried to insert demo.getDefaultCloseOperation(ApplicationFrame.DISPOSE_ON_CLOSE);
but its not working. Although not giving any error.

I have also tried to insert this in the BarChart3DDemo3 constructor but its giving error getDefaultCloseOperation() method does not take int argument.

I have no clue what to do next? Please help. Thanks.

  • 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-05-23T08:57:57+00:00Added an answer on May 23, 2026 at 8:57 am

    Note that ApplicationFrame “listens for window closing events, and responds by shutting down the JVM.” It’s intended for demo applications. Instead, put your ChartPanel in a JFrame, as shown here.

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

Sidebar

Related Questions

I have integrated the below code in my application to generate a 'pdf' file
I have integrated this menu in my website : http://www.htmldrive.net/items/demo/979/simple-google-style-Dropdown-menu-with-jQuery I want the menu
Does anybody know about CKEditor, I have integrated this application in my web app.
I have integrated evernote in my application by downloading sample code from its site.
I have integrated AdMob in my application like this. #define AdMob_ID @a14fd99963270b2 -(void)viewDidLoad {
I have found this project on Codeplex. http://www.codeplex.com/ProjNET I need to integrate this code
I have Integrated ZXing code into my own app and I have commented the
I have integrated a Silverlight Navigation Application in an ASP.NET MVC web. However when
I have integrated in Hudson a maven 3 project calling following sequence: clean tomcat:redeploy
I have integrated Zxing library in my Android application, and it is Perfectly working,

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.