help with "goto(x,y)" in java...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • khajeddin
    New Member
    • Nov 2006
    • 51

    help with "goto(x,y)" in java...

    Hi :
    i want an emergent help,I want to know if there is a function in
    Java Programming which act the same as function "goto(x,y) " in C Programming!!!
    ( Hint: goto(x,y) ,takes to parameters X and Y which are coordinates of cursor, and put the cursor in that coordinates in the (output) screen! X for longitude and Y for latitude.)
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Have a look at the jcurses library.

    kind regards,

    Jos

    Comment

    • BigDaddyLH
      Recognized Expert Top Contributor
      • Dec 2007
      • 1216

      #3
      What kind of user-interface are we talking about? Console, Swing, AWT, SWT, web application, J2ME, etc...

      Please be clearer.

      Comment

      • khajeddin
        New Member
        • Nov 2006
        • 51

        #4
        oh, sorry!
        I work with JCreatorLE (V3)...!

        Comment

        • JosAH
          Recognized Expert MVP
          • Mar 2007
          • 11453

          #5
          Originally posted by khajeddin
          oh, sorry!
          I work with JCreatorLE (V3)...!
          That's not what BigDaddyLH meant: he wanted to know if your Java application
          should control the character based console or an AWT/SWT/Swing graphics area.

          kind regards,

          Jos

          Comment

          • khajeddin
            New Member
            • Nov 2006
            • 51

            #6
            Originally posted by JosAH
            That's not what BigDaddyLH meant: he wanted to know if your Java application
            should control the character based console or an AWT/SWT/Swing graphics area.
            Jos
            I hope get what you meant corretly, this time....!
            yes, it should control character based console!

            thanks.

            Comment

            • JosAH
              Recognized Expert MVP
              • Mar 2007
              • 11453

              #7
              Originally posted by khajeddin
              I hope get what you meant corretly, this time....!
              yes, it should control character based console!

              thanks.
              Well then, read my first reply again.

              kind regards,

              Jos

              Comment

              • khajeddin
                New Member
                • Nov 2006
                • 51

                #8
                well you mean i have to download JCurses library?,i need this fucction to write a project and what if my professor didn't have this library...? my project will run wrongly on his pc?
                isn't any other way? there is no such function in J2SE?

                best regards.

                Comment

                • BigDaddyLH
                  Recognized Expert Top Contributor
                  • Dec 2007
                  • 1216

                  #9
                  Originally posted by khajeddin
                  well you mean i have to download JCurses library?,i need this fucction to write a project and what if my professor didn't have this library...? my project will run wrongly on his pc?
                  isn't any other way? there is no such function in J2SE?

                  best regards.
                  Jos and I are on the same page now. No, there is no cursor control library for console-based apps in the Java SE.

                  What were you planning to hand to your professor? Individual .class files, and other data files? What a mess! Your application can be made up of an executable jar plus other jar files (your own libraries and other, third-party libraries, like JCurses). For convenience you could include a BAT file that launches the application plus a README.TXT file that tells the reader what I am telling you. All of this could be zipped into a single ZIP file for convenience. The recipient unzips and takes it from there.

                  Here is a tutorial on deploying applications using jars.

                  This deployment Java tutorial describes development and deployment of applets, Java Web Start applications, rich Internet applications, and JAR related tools

                  Comment

                  • khajeddin
                    New Member
                    • Nov 2006
                    • 51

                    #10
                    well i do what my professor want me to do!!
                    any way thaks alot for your help.
                    best regards..

                    Comment

                    • BigDaddyLH
                      Recognized Expert Top Contributor
                      • Dec 2007
                      • 1216

                      #11
                      Originally posted by khajeddin
                      well i do what my professor want me to do!!
                      any way thaks alot for your help.
                      best regards..
                      I would be happy for a student to send me a zipped application (including source code, of course).

                      What does your professor want you to do instead?

                      Does he want you to use JCurses?

                      Comment

                      Working...