Isaac Skelton

Greenhorn
+ Follow
since Sep 06, 2012
Isaac likes ...
Mac C++ Java
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Isaac Skelton

I have always wanted to create a simple code editor; nothing fancy, all I want is a TextArea that once the user pushes tab it stays in tab. For example, notepad++ allows the user to tidy his/her script up while notepad (MS) dosn't allow a easy method to do this. I have been researching for a while now and all I could find that was might help me was "setTabSize"

For example,


I hope you understand what im asking for, if not please ask and ill try explain more
11 years ago

Greg Brannon wrote:Use the equals() method to compare Strings.

if username.equals( "this" )

etc. . .



Thanks you so much, it worked perfect and it was a quick reply to my question.
11 years ago
Im having problems with the secong frame, I have put in capital letters a comment next to my problem. I can not get the old frame to disapear and open the new one (I dont know if login.dispose() is even java, it was just a guess).


Thanks in advanced I. Skelton
11 years ago
Thanks for the reply, someone else gave me the answer yesterday so the problem has now been solved. All I need to work on now are enemy attacks and some other little things.
11 years ago


Output section in code:

Your Life 100
There Life 100

Your Attack List
1) Punch: UNLIMITED
2) Combo Punch: 2
3) Life Drainer: 1
4) Heal Yourself: 1
5) Squash: 0
1
Your Life 100
There Life 100

Your Attack List
1) Punch: UNLIMITED
2) Combo Punch: 2
3) Life Drainer: 1
4) Heal Yourself: 1
5) Squash: 0

I have only displayed one section of this applications output because thats the bit with a problem. As you can see the life stays the same even thought I have punched which is meant to take away 5 from there life, but it isn't. How can I resolve this problem. I have supplied you with all the source code that I have done and urgently wan't a solution so please help. The line that I think is the main for this problem is...
theirLifeLineAmount = theirLifeLineAmount - 5;
11 years ago