Qbasicnews.com

Full Version: LOCATE in Java?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a library, a built in command, or anything in Java that allows me to place a letter at a specific point? Just like the "LOCATE" command in Qbasic?
If you mean the console, then no. You could of course fake it by outputting say 25 strings and then manipulate the strings. But the console in Java is not really meant to be used that much. You'd be better off using a window for output. :wink:
Eh? I do not quite understand what you mean. It's not possible to place a letter at say 20,30? There isn't a way to move the cursor or something like that?
I believe if you can find an X11 (posix) library for Java, you could use a console windows like you'd want to use it.
what does java used for anyways?
Java was designed with portability in mind. To give you an example, I can run Java applications on the LEGO Mindstorms' RCX device. It has 32K of ram - half goes to the application and the other half to the Java virtual machine for it. Big Grin

Edit: Here's the link to the sourceforge site for LeJOS. :wink:
Hehe I've played around with Lejos before ^^;; it's pretty cool.