Cursor « Development « Java I/O Q&A





1. How to change cursor when dropping into Java application    stackoverflow.com

I'm having some problems I just can't figure out... I'm writing a Swing Java application with a JList that accepts drag-and-drops. I want to change the cursor while dragging a file or ...

2. "properly" Manipulate "cursor" when reading an input file when using scanners    stackoverflow.com

Is this the "proper way" to pull a char and string from a line of text in a .txt input file?

Scanner scan, readLine;

System.out.print("Enter the name of your transaction file please (include ...

3. Cursor position error    coderanch.com

OBJ=(Add) din.readObject(); while(OBJ!=null) { System.out.println(OBJ.s1); System.out.println(OBJ.s1); OBJ=(Add)din.readObject(); } when i used the above code ihave got EOFException how i get end of file is there an other method and i have "next" button how i control the cursor mean how i get the next or privious record in the file thank in advance

4. Is there a cursor in java?    coderanch.com

Hi Do I hava to copy the data of file into StringBuilder or another file, in case, I want to append into the middle of file but not the end of it. that is because I cannot find any cursor in java. If I correct, why sun did not provide us with cursor thanks

5. Setting Cursor to Top of File    forums.oracle.com

Hello, I'm not quite sure how to reset the cursor to the top of a file after reading though it. In my program I read through the file once, but later I need to read through it again, so I was wondering if there is a way to reset the cursor back to the top of the file I'm reading. Because ...

6. Moving the cursor inside a file being written.    forums.oracle.com

I don't know of anything like that in the api, but you could roll your own. You need to know the length of your lines (which I assume you do since it's a RAF). It'll also be easier to keep track of what row and col you're on, so you don't have to recompute it continually (this may not be true ...