Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: graph in java

  1. #1
    Junior Member
    Join Date
    Dec 2013
    Posts
    24
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default graph in java

    If I have a function for example y=x^2
    How can I draw the curve?


  2. #2
    Member
    Join Date
    Oct 2013
    Location
    Manila, Philippines
    Posts
    285
    My Mood
    Amused
    Thanks
    6
    Thanked 64 Times in 61 Posts

    Default Re: graph in java

    draw where?

  3. #3
    Junior Member
    Join Date
    Dec 2013
    Posts
    24
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default Re: graph in java

    in a frame I need the curve to start in the middle

  4. #4
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: graph in java

    Drawing should be done on a JPanel (or other JComponent). Refer to the Custom Painting tutorial.

  5. The Following User Says Thank You to GregBrannon For This Useful Post:

    e93 (April 8th, 2014)

Similar Threads

  1. to get graph of system performance using java pls help me
    By keerthana in forum What's Wrong With My Code?
    Replies: 1
    Last Post: March 6th, 2013, 05:49 AM
  2. To get graph of System performance in java
    By keerthana in forum What's Wrong With My Code?
    Replies: 2
    Last Post: March 2nd, 2013, 01:19 AM
  3. Java Program that plots point on a graph..need some help.
    By neontiger in forum What's Wrong With My Code?
    Replies: 2
    Last Post: February 10th, 2012, 07:55 PM
  4. Java Bar graph takes user input to create graph?
    By kenjiro310 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: March 31st, 2011, 07:37 AM
  5. Replies: 1
    Last Post: October 7th, 2008, 07:35 AM

Tags for this Thread