Results 1 to 2 of 2
  1. #1
    Dcalladi is offline Member
    Join Date
    Oct 2011
    Posts
    27
    Rep Power
    0

    Default JFreeChart Problems

    I am trying to use JFreeChart to create charts obviously. JFreeChart come with ChartFrame and ChartPanel.
    I have a class to create the chart itself then in another class i have ChartPanel and add that to a normal JPanel this works so far
    by using :

    Java Code:
            ChartPanel chartsPanels = new ChartPanel(charts);
            GroupLayout mainPanelLayout = new GroupLayout(chartPanel);
            chartPanel.setLayout(mainPanelLayout);
            mainPanelLayout.setAutoCreateContainerGaps(true);
            mainPanelLayout.setAutoCreateGaps(true);
            GroupLayout.SequentialGroup hGroup = mainPanelLayout.createSequentialGroup();
            hGroup.addComponent(chartsPanels);
            mainPanelLayout.setHorizontalGroup(hGroup);
            GroupLayout.SequentialGroup vGroup = mainPanelLayout.createSequentialGroup();
            vGroup.addComponent(chartsPanels);
            mainPanelLayout.setVerticalGroup(vGroup);
    my problem is that when i click the button an try to change the chart displaying it won't do anything i can't think it would be about the class that creates the chart it would be the method of displaying.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,587
    Rep Power
    25

    Default Re: JFreeChart Problems

    it won't do anything i can't think it would be about
    Are you sure the code is executing? If you don't execute it, it won't do anything.

Similar Threads

  1. JFreeChart 1.0.11
    By Java Tip in forum Java Software
    Replies: 3
    Last Post: 04-18-2014, 09:27 PM
  2. JFreeChart 1.0.14
    By java software in forum Java Software
    Replies: 1
    Last Post: 08-10-2012, 08:46 AM
  3. Ask to Jfreechart
    By jin-beom Jeong in forum New To Java
    Replies: 0
    Last Post: 07-23-2011, 09:47 AM
  4. JFreeChart help
    By lowlyintern in forum Advanced Java
    Replies: 8
    Last Post: 06-15-2011, 05:30 PM
  5. Jfreechart
    By aaruviswa in forum Web Frameworks
    Replies: 2
    Last Post: 03-17-2011, 07:51 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •