Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 whats wrong with the cursor?
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
starcraft




PostPosted: Tue Apr 03, 2007 3:21 pm   Post subject: whats wrong with the cursor?

I creted this title page with a enterkey and password, you type password and you go in, wrong password take you to "no entry" and allow you to try again.
How ever, If i type the password and hit enter, on the next page, which it allow you to hit enter again and go in, the cursor get shifted "DOWN".

but if i type a wrong password, it says no entry and try again, and i type the right password, the cursor is in its corrct place.

Whats going on?

I want to post ALL the code, but it take up too much space,
Sponsor
Sponsor
Sponsor
sponsor
starcraft




PostPosted: Tue Apr 03, 2007 3:23 pm   Post subject: Re: whats wrong with the cursor?

Is there a way that i can upload the package without put me putting 20 pages of text up?
rdrake




PostPosted: Tue Apr 03, 2007 4:41 pm   Post subject: Re: whats wrong with the cursor?

starcraft wrote:

Is there a way that i can upload the package without put me putting 20 pages of text up?
You want to add an attachment? Go to "Post Reply" and click "Add an Attachment." Then browse, find what you want to upload, click OK, and write up the rest of your post then click submit.
wtd




PostPosted: Tue Apr 03, 2007 5:34 pm   Post subject: RE:whats wrong with the cursor?

Another suggestion... if you have 20 pages worth of source code, and one needs all of it to understand what's going on...

You're doing something wrong.
Clayton




PostPosted: Tue Apr 03, 2007 8:37 pm   Post subject: RE:whats wrong with the cursor?

Another thing you could do is just put up the code that is proving problematic...
starcraft




PostPosted: Tue Apr 03, 2007 9:41 pm   Post subject: Re: whats wrong with the cursor?

Heres the problem, I "DONT" know what code is wrong.

BUt, ok, let me attach it.
this is just the titlepage.

pay close attention to the cursor.
starcraft




PostPosted: Tue Apr 03, 2007 9:42 pm   Post subject: Re: whats wrong with the cursor?

OH the extention .class is not allowed.
starcraft




PostPosted: Tue Apr 03, 2007 9:44 pm   Post subject: Re: whats wrong with the cursor?

When i export it from java, it get saved as 2 files. one .java. one.class


ObjectColorJCtest.java
 Description:

Download
 Filename:  ObjectColorJCtest.java
 Filesize:  40.66 KB
 Downloaded:  83 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
ericfourfour




PostPosted: Tue Apr 03, 2007 10:53 pm   Post subject: Re: whats wrong with the cursor?

Java:
import hsa.Console;

That line prevents pretty much everyone but grade 11 and 12 students (who actually use hsa.Console) from helping you. Might I suggest wtd's Introduction To Java? It will teach you a new outlook on object orientation, proper coding style, and how to program independent of proprietary libraries.

If you however, isolate where you are having trouble, you may receive the help needed. Very few people are willing to read through 1511 lines in hope to find a problem. Also, if it is related to hsa.Console, you will have a very difficult time getting help.

Anyway, you said the cursor was shifting down whenever enter was pressed. I am pretty sure the cursor gets shifted down because enter is the \n key. The way you get around this is to use swing instead of the command line for input.
starcraft




PostPosted: Wed Apr 04, 2007 9:04 pm   Post subject: Re: whats wrong with the cursor?

The truth is, im a grade 11 student studying computering science.

What does that line do, and why is it there?
ericfourfour




PostPosted: Wed Apr 04, 2007 10:26 pm   Post subject: RE:whats wrong with the cursor?

Has your teacher not taught you what import does? Oh dear. I really suggest reading wtd's introduction to Java, if you want to go anywhere with this programming language.

Anyway, that line imports a class called Console in the hsa package. The hsa package is essentially a library made by holt soft that is intended to simplify Java for high school students. The Console class deals with (I'm guessing here) text based i/o and some graphics. Importing a class allows you to use it within your program.
FileFantasy




PostPosted: Mon Apr 09, 2007 4:33 pm   Post subject: RE:whats wrong with the cursor?

import hsa.Console; basically creates many shortcuts to cut down the amount of codes and concepts you need to know, but it's only good for grade 11 comp sci, you will (and should, unless your teacher sucks at java too) learn how to program without hsa package in grade 12.
starcraft




PostPosted: Wed Apr 11, 2007 8:34 pm   Post subject: Re: whats wrong with the cursor?

I asked, she doesn't know either.
All she said that it is needed there.
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 13 Posts ]
Jump to:   


Style:  
Search: