473,473 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

cursor movement

3 New Member
Hi all! I'm new to java programming and I'm trying to find how to move the cursor to a specific point (right after the execution), instead of flashing at the end of the line "Press any key to continue...". Thanks in advance guys!!!
Nov 30 '06 #1
4 2830
r035198x
13,262 MVP
Hi all! I'm new to java programming and I'm trying to find how to move the cursor to a specific point (right after the execution), instead of flashing at the end of the line "Press any key to continue...". Thanks in advance guys!!!
Are you talking about at the console? If you are then the moment you see the Press any key to continue, it means that your program has exited and you can no longer control the screen output using your java program because the program is probably no longer in memory and is no longer executing.
Dec 1 '06 #2
RedDevil
3 New Member
Are you talking about at the console? If you are then the moment you see the Press any key to continue, it means that your program has exited and you can no longer control the screen output using your java program because the program is probably no longer in memory and is no longer executing.
I'm talking about a command at the end of the program which will move the cursor to a specific point (x, y), before the program terminates
Dec 1 '06 #3
r035198x
13,262 MVP
I'm talking about a command at the end of the program which will move the cursor to a specific point (x, y), before the program terminates
You cannot refer to console co-ordinates. You only output lines of text to the console. Also remember that java does not have a trivial clear screen like you have in c/c++. You do not have a caret object for the console like you do for JTextAreas and other text components because the console belongs to your OS and java cannot directly manipulate it.
Dec 1 '06 #4
RedDevil
3 New Member
You cannot refer to console co-ordinates. You only output lines of text to the console. Also remember that java does not have a trivial clear screen like you have in c/c++. You do not have a caret object for the console like you do for JTextAreas and other text components because the console belongs to your OS and java cannot directly manipulate it.
So you 're telling me that my teacher is 'playing' with us, because he promised extra bonus for writing a typical program which would have the cursor at the top of the screen...
Maybe you 're right...
Thanks for your time!
Dec 2 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Robin Shuff | last post by:
Hi, I'm trying to limit the movement of the mouse cursor in using a VB app. The idea is to stop the cursor straying on to the second monitor of a dual screen set-up (i.e. a projector) while this...
1
by: Jim | last post by:
I having a difficult time here trying to figure out what to do here. I need a way to scroll through a recordset and display the results with both forward and backward movement on a web page(PHP...
3
by: Csaba2000 | last post by:
I have set onmousedown to change the cursor, but this setting is ignored (IE 5.5; NN 6.1 on Win 2K Pro) until the mouse is either moved or the mouse button is released. On Opera 7.01, the setting...
10
by: Danny | last post by:
How can I get the coordinates of the mouse cursor in Mozilla browsers as well as Opera and IE6? I'm struggling to understand how to capture mouse movement events with Mozilla/Netscape/Firefox and...
1
by: Paul | last post by:
Hi all, I am making a DirectInput application wich must report correctly the cursor position in windowed mode (it means it has to be the same as Microsoft Window´s cursor position). First of...
5
by: Amar Prakash Tripaithi | last post by:
Hi, Is there exists some function for controlling the cursor movement in C++. With control of cursor movement I mean, is there exists any function that let me to relocate the cursor as per...
4
by: mybay | last post by:
Hi guys, I have a problem with the cursor, in particular I'd like to change it at a certain time. I have a simple html page where I move a div depending on the mouse movement. I get mouse x...
5
by: mike_dba | last post by:
I am looking for comments on experience using a Load from Cursor across multiple db's databases. I have a multi-terrabyte database across many partitions that includes a large table (1 Tb+). The...
4
by: mike | last post by:
I have the opportunity to rescue a project that uses a mouse to sense the relative position of a machine. The hardware is built...just needs to be programmed. Stop snickering!!! I didn't do it...I...
0
by: Studlyami | last post by:
I am trying to find how windows translate the input from a HID device to an actual windows message; specifically, the mouse. I am trying to figure out how when the mouse moves the process windows...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.