Results 1 to 4 of 4
  1. #1
    santhosh_el is offline Member
    Join Date
    Feb 2009
    Posts
    50
    Rep Power
    0

    Default how to insert button in jfreechart

    dear sir,

    i have plotted linechart using jfreechart.but i want need to insert button,once i have click the button the graph should be plotted.please anyone can send me a code to insert button in chart

    thanks
    santhosh

  2. #2
    mtyoung is offline Senior Member
    Join Date
    Dec 2008
    Location
    Hong Kong
    Posts
    473
    Rep Power
    7

    Default

    chartPanel and J/Button are J/component
    add them in the JPanel, add actionlistener to J/Button,
    implement a method like reloadChart which call in event handling method

  3. #3
    santhosh_el is offline Member
    Join Date
    Feb 2009
    Posts
    50
    Rep Power
    0

    Default i want to insert button in jfreechart

    dear sir,

    i am new to java ,pls anybody send me a code to insert a button in jfreechart.

    thanks
    santhosh

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    i am new to java ,pls anybody send me a code to insert a button in jfreechart.
    You can find the code and lessons here:

    Swing Button Tutorial
    Swing Layout Manager Tutorial

    Best of luck.

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. Replies: 3
    Last Post: 02-28-2009, 10:17 AM
  3. JFreeChart 1.0.8
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 11-27-2007, 09:27 PM
  4. JFreeChart 1.0.7
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 11-17-2007, 03:13 PM
  5. JFreeChart 1.0.5
    By levent in forum Java Software
    Replies: 0
    Last Post: 05-10-2007, 06:36 PM

Posting Permissions

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