CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    Join Date
    Aug 2010
    Posts
    9

    Exclamation JAVA code for ALERT

    Hi

    I have a program similar to Reuters 3000xtra giving e a series of quotes continuously in time. I believe this program is written in JAVA Code.

    I would like to write a JAVA program that scan the value of these quotes and places on the screen an arrow pointing upwards if the quotes are increasing or an arrow pointing downwards if the quotes are decresing.

    Is that possible?

    Thank you fro your help! It would be very much appreciated

  2. #2
    Join Date
    Jun 1999
    Location
    Eastern Florida
    Posts
    3,877

    Re: JAVA code for ALERT

    Yes again.
    Norm

  3. #3
    Join Date
    Aug 2010
    Posts
    9

    Cool Re: JAVA code for ALERT

    Hi Norm

    Thank you for your reply! Could you tell me a bit more...

    Is it a simple thing to do?

    Is it necessary to write the code within the code of the initial program?

    Thanks again

  4. #4
    Join Date
    Jun 1999
    Location
    Eastern Florida
    Posts
    3,877

    Re: JAVA code for ALERT

    Your code could create a window and set it visible.
    Norm

  5. #5
    Join Date
    Aug 2010
    Posts
    9

    Unhappy Re: JAVA code for ALERT

    Could you give me an example of code....

    How could I relate it to my actual program, the one that gives me the quotes?

    How could I sent the condition?

    Thanks a lot!

  6. #6
    Join Date
    Jun 1999
    Location
    Eastern Florida
    Posts
    3,877

    Re: JAVA code for ALERT

    The program would keep track of the quotes values and when they change, the program would open a window.

    Code:
    if(thisQuote != lastQuote) {  // test if quote has changed
       Window win = new Window();
        .. add stuff to window re the change
       win.setVisible(true);  // show window
    }
    Norm

  7. #7
    Join Date
    Aug 2010
    Posts
    9

    Unhappy Re: JAVA code for ALERT

    Okay... thank you

    but how do I define "this quote"? I mean, how does the program know hich number it has to relate to?

  8. #8
    Join Date
    Jun 1999
    Location
    Eastern Florida
    Posts
    3,877

    Re: JAVA code for ALERT

    Are you a programmer?
    Your question makes no sense.

    You earlier stated: "write a JAVA program that scan the value of these quotes"

    That implies that the program can see the values and use them to make decisions.
    Norm

  9. #9
    Join Date
    Aug 2010
    Posts
    9

    Unhappy Re: JAVA code for ALERT

    I am not a programmer sorry. I would love to become one though.

    The program I would like to write should be external to the one running the quotes in real time. I would like to create a link to that program that identifies the quote I am interested in and gives me a pop-up message when certain conditions occur (increase...).

    Or do you think I have to insert the code within the code of the program running the quotes? Is it possible to access that code?

  10. #10
    Join Date
    Jun 1999
    Location
    Eastern Florida
    Posts
    3,877

    Re: JAVA code for ALERT

    I have no idea about the program you are talking about.
    You need to find a programmer and have her/him help you with your project.

    Good luck.
    Norm

  11. #11
    Join Date
    Aug 2010
    Posts
    9

    Exclamation Re: JAVA code for ALERT

    I just want that when a certain quote goes down a pop-up message appears saying "Attention the price is decreasing". It doesn't seem such a complicated idea.

  12. #12
    Join Date
    Jun 1999
    Location
    Eastern Florida
    Posts
    3,877

    Re: JAVA code for ALERT

    It might be very simple.
    Contact a programmer and see what he/she thinks.
    Norm

  13. #13
    Join Date
    May 2006
    Location
    UK
    Posts
    4,473

    Re: JAVA code for ALERT

    I just want that when a certain quote goes down a pop-up message appears saying "Attention the price is decreasing". It doesn't seem such a complicated idea.
    It's not a complicated idea but that doesn't mean the implementation won't be complicated.
    Your main problem is you need to get access to the data stream so you can parse it and determine which prices are falling. We can't help you with that as we don't have access to the program you are currently using so we don't know how you can hook into the program to get the data.
    Posting code? Use code tags like this: [code]...Your code here...[/code]
    Click here for examples of Java Code

  14. #14
    Join Date
    Aug 2010
    Posts
    9

    Question Re: JAVA code for ALERT

    Thank you for your reply Kaeng

    Maybe you can tell me how I can access the code of the program, so that I can copy paste it for you?

    Thanks again

  15. #15
    Join Date
    Jun 1999
    Location
    Eastern Florida
    Posts
    3,877

    Re: JAVA code for ALERT

    Ask the author of the program for a copy of the source.
    Norm

Page 1 of 2 12 LastLast

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured