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 12 of 12

Thread: Please solve my problem (how to make graph in java?)

  1. #1
    Junior Member
    Join Date
    Nov 2013
    Posts
    13
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Unhappy Please solve my problem (how to make graph in java?)

    I want to create an application for remote monitoring. I want to display data such as voltage, current drawn from the microcontroller using wiz110sr (converter serial to ethernet) and shown in graphical form in real time java language.
    how can java generate in real-time graphs?
    I'm new in java language. please give me an explanation. thanks before.


  2. #2
    Member
    Join Date
    Oct 2013
    Location
    Saint-Petersburg, Russia
    Posts
    33
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default Re: Please solve my problem (how to make graph in java?)

    You usually show graphical data not "in the language" but in the Graphic User Interface produced by program written in the given language.

    In java popular (at least for beginners) approach is to use classes of Swing framework (included in standard API). You can find tons of examples, I think. Drawing on JPanel will give you graphs/charts all right.

    Of course you can also find some specific libraries, but I think that for pure beginner it is not the easiest way.

  3. #3
    Junior Member
    Join Date
    Nov 2013
    Posts
    13
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Please solve my problem (how to make graph in java?)

    can JPanel provide graphics in realtime? do you have a reference for me to read? thank you for your suggestions.

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Please solve my problem (how to make graph in java?)

    Java should be able to display the data it receives when it receives it.
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Junior Member
    Join Date
    Nov 2013
    Posts
    13
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Please solve my problem (how to make graph in java?)

    @Norm: how to display the incoming data in java?
    when data is entered into java, can the data directly stored? if it can be directly deposited, where the data automatically stored?
    I still a beginner in java. thanks before.

  6. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Please solve my problem (how to make graph in java?)

    I still a beginner in java.
    This program will require more than a beginner.

    How is the data being received in the program? Does it come via a socket?
    When it receives the data, it can cause a method to display it and wait for the next input.
    The program will probably need threads.
    If you don't understand my answer, don't ignore it, ask a question.

  7. #7
    Junior Member
    Join Date
    Nov 2013
    Posts
    13
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Please solve my problem (how to make graph in java?)

    @Norm:
    If this is not for beginners, I would still learn.
    Yes, I think the data is received via a socket. But, can java socket storing data automatically?
    Can you teach me sir? Or there is a tutorial on this?

  8. #8
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Please solve my problem (how to make graph in java?)

    There are many parts to this. Too many to cover here.

    A starting place is the Java tutorial: The Really Big Index
    If you don't understand my answer, don't ignore it, ask a question.

  9. #9
    Junior Member
    Join Date
    Nov 2013
    Posts
    13
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Please solve my problem (how to make graph in java?)

    if later I find difficult, may I ask you? thankyou so much, Sir..

  10. #10
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Please solve my problem (how to make graph in java?)

    You can post your questions here on the forum. There are lots of people here that will try to help.
    If you don't understand my answer, don't ignore it, ask a question.

  11. #11
    Junior Member
    Join Date
    Nov 2013
    Posts
    13
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Help me

    I want to receive data from wiz110sr (serial to ethernet converter) with java. but I'm confused how java can receive and storing incoming data automatically? where the incoming data is stored in java? thanks before.

  12. #12
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Help me

    A Java program can write data to a file on disk.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. how do i solve this programming problem in dr java?
    By jennavg in forum What's Wrong With My Code?
    Replies: 4
    Last Post: April 8th, 2013, 12:22 PM
  2. problem in plotting graph for same x-axis values
    By priti in forum What's Wrong With My Code?
    Replies: 2
    Last Post: April 9th, 2012, 12:47 AM
  3. problem in my code java code graph editeur
    By kisokiso in forum Java Theory & Questions
    Replies: 5
    Last Post: January 6th, 2012, 08:36 AM
  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. How to make a graph like this
    By sugarhigh in forum AWT / Java Swing
    Replies: 1
    Last Post: August 27th, 2010, 09:05 AM