Forum: Java
Jul 23rd, 2008, 2:38 AM
|
|
Replies: 18
Views: 201
Re: GUI problem.
Oh, I see what you mean. Well since I am doing this for free... and the input that is going to be there is going to be short, probably one word... I'm not concerned. This is one section of a much...
|
Forum: Java
Jul 23rd, 2008, 1:30 AM
|
|
Replies: 18
Views: 201
Re: GUI problem.
I mean... I already fixed the problem like I had said with the variable thing. I just added a counter. I was just wondering if there is a way to avoid this problem altogether, because I would think...
|
Forum: Java
Jul 23rd, 2008, 1:09 AM
|
|
Replies: 18
Views: 201
Re: GUI problem.
Ok I have another problem, one we already discussed. When it prints out the error message (Re-enter team name or whatever it says) the act of printing that out fires a PropertyChangeEvent. And that...
|
Forum: Java
Jul 22nd, 2008, 10:28 PM
|
|
Replies: 18
Views: 201
Re: GUI problem.
Thanks but I already found the error. But thanks for your help, it was definitely good since it told me what wasn't the problem. Sometimes knowing what the problem isn't is just as useful as finding...
|
Forum: Java
Jul 22nd, 2008, 10:16 PM
|
|
Replies: 18
Views: 201
Re: GUI problem.
getPropertyName() gave me back "value", which doesn't tell me anything; I could have known that value was what was changing just because its what has to be changing in order to trigger the teamField...
|
Forum: Java
Jul 22nd, 2008, 9:47 PM
|
|
Replies: 18
Views: 201
Re: GUI problem.
oh, right, lol. thats embarassing. And thanks for the method name, I was obviously confused there at first. I will do that since I tried quickly rewriting something but it wasn't the source of the...
|
Forum: Java
Jul 22nd, 2008, 12:12 PM
|
|
Replies: 18
Views: 201
Re: GUI problem.
This is the "source" that caused the property change event. I don't know what it is really. lol. Looks like you were right...
|
Forum: Java
Jul 22nd, 2008, 11:55 AM
|
|
Replies: 18
Views: 201
Re: GUI problem.
Obviously, as it is programmed, that is what it does. But it is not intentionally programmed to do so. If you look at where the statement that prints it is, it would only be printed if there was a...
|
Forum: Java
Jul 21st, 2008, 8:37 PM
|
|
Replies: 18
Views: 201
Re: GUI problem.
So you are saying that I should do a println to print out the type of PropertyChangeEvent that is occurring? That seems reasonable, but if that is the case, I don't see why that problem didn't occur...
|
Forum: Java
Jul 21st, 2008, 12:57 AM
|
|
Replies: 18
Views: 201
Re: GUI problem.
for real lol. i've waited a week for any help and i help plenty of people here. please?
:(
|
Forum: Java
Jul 13th, 2008, 3:44 PM
|
|
Replies: 18
Views: 201
|
Forum: Java
Jul 12th, 2008, 4:07 AM
|
|
Replies: 18
Views: 201
Re: GUI problem.
I'm very tired and its late so I hope that was clear. Basically there are two GUIs. One is the main GUI which you can click on. Clicking on it can cause this classes GUI to open up. When this...
|
Forum: Java
Jul 12th, 2008, 4:04 AM
|
|
Replies: 18
Views: 201
GUI problem.
This class is contained within a larger GUI. The larger GUI just consists of a window with several options. Clicking on one of the options calls the method in this class which fires up this classes...
|
Forum: Java
Jul 6th, 2008, 8:54 PM
|
|
Replies: 3
Views: 181
Re: Ictx
Anyone with enough experience to help on a project like this will require payment.
|
Forum: Java
Jul 6th, 2008, 8:52 PM
|
|
Replies: 2
Views: 145
Re: method type.length() not working
He is correct, or seems to be correct... to add to that, in Java, an array is considered a kind of object. The length of an array is an instance variable of that object, therefore, it is referred to...
|
Forum: Java
Jun 29th, 2008, 6:57 AM
|
|
Replies: 1
Views: 175
Re: flow chart..& your advices..
My advice is to use the site's search feature, since at least part of this question has been asked a number of times. And I'm not really sure what you mean by flowchart. I know what a flowchart is,...
|
Forum: C
Jun 29th, 2008, 6:54 AM
|
|
Replies: 8
Views: 355
Re: Could someone please Help me?
I already told you why this is. Again, it is because your function definition for calc is incorrect. That is to say, the code inside of the "calc" function is wrong. Your method header says int*...
|
Forum: Community Announcements and Feedback
Jun 14th, 2008, 1:03 PM
|
|
Replies: 5
Views: 397
Re: Delete My Account Please
I am an administrator on another forum. Typically deleting an account will keep all of that account's posts and information... it won't actually make it so that that person never existed on the...
|
Forum: Coder's Corner Lounge
Jun 14th, 2008, 12:49 PM
|
|
Replies: 53
Views: 1,589
|
Forum: Other Programming Languages
May 29th, 2008, 8:08 AM
|
|
Replies: 15
Views: 668
|
Forum: Java
May 29th, 2008, 8:05 AM
|
|
Replies: 5
Views: 294
|
Forum: C++
May 26th, 2008, 2:58 PM
|
|
Replies: 8
Views: 336
|
Forum: Java
May 25th, 2008, 4:57 PM
|
|
Replies: 5
Views: 294
|
Forum: Java
May 25th, 2008, 4:53 PM
|
|
Replies: 51
Views: 1,441
Re: back to online battleship
I've run into this problem before also. I never figured out exactly why it happens but I think it has to do with Serialized objects. If you create a copy of the object the problem is fixed.
|
Forum: Java
May 25th, 2008, 4:50 PM
|
|
Replies: 51
Views: 1,441
Re: back to online battleship
I'm glad you got it working. I'm not sure what design you finally decided on, but what I had in mind for ActionRequest was that action request would simply contain two things, 'boolean hitSuccess'...
|
Forum: C
May 21st, 2008, 11:02 PM
|
|
Replies: 8
Views: 355
Re: Could someone please Help me?
You could also use pointers, but I think the pointer code you had above was incorrect. Its been awhile so I could be wrong, but try
*area = length * width and change the header to int length, int...
|
Forum: Java
May 21st, 2008, 10:57 PM
|
|
Replies: 51
Views: 1,441
Re: back to online battleship
You will still need the client/server model. The client and server will be passing the ActionRequests back and forth, and will be calling whatever methods are necessary to update the boards....
|
Forum: C
May 21st, 2008, 11:50 AM
|
|
Replies: 9
Views: 410
Re: Implement a queue using share memory?
No, I was talking to Jessehk or whatever his name is. I realize what the problem entails. I also don't understand why anyone would want you to do this in C, and I'm interested to know what kind of...
|
Forum: C
May 21st, 2008, 2:58 AM
|
|
Replies: 9
Views: 410
|
Forum: Java
May 21st, 2008, 2:41 AM
|
|
Replies: 51
Views: 1,441
Re: back to online battleship
You only need one class to represent the board, sorry if I made it sound different.
Reflection:
Take for example where you said Object myObj = in.readObject(). Reflection is a mechanism in Java...
|
Forum: Other Web Development Languages
May 19th, 2008, 9:10 AM
|
|
Replies: 5
Views: 471
Re: Creating a Mortgage website. Charge what?
$10-$20 per hour? That sounds way underpriced for someone with a degree. I don't know a lot about it, but is that standard? I would think it would be more in the range of $25-40 per hr at least.
|
Forum: Java
May 18th, 2008, 8:14 PM
|
|
Replies: 51
Views: 1,441
Re: back to online battleship
cwl
I will be back to explain in detail how to do these things tomorrow.. however I'm studying for an exam (that is tomorrow lol) right now so I don't have time. In the meantime check out this...
|
Forum: Java
May 18th, 2008, 3:23 PM
|
|
Replies: 51
Views: 1,441
Re: back to online battleship
I only responded due to where you said, "why not just..." which made it sound like your solution was easier, when in fact, its more difficult and confusing. And this has to do with OOP since the...
|
Forum: Paid Job Offers
May 17th, 2008, 9:00 PM
|
|
Replies: 19
Views: 908
|
Forum: Java
May 17th, 2008, 8:54 PM
|
|
Replies: 51
Views: 1,441
Re: back to online battleship
Because the correct OOP way to do it is what I described above. Also, because you can just send one object which can contain the information you want (however you want to store it, be it an array,...
|
Forum: Coder's Corner Lounge
May 17th, 2008, 5:43 PM
|
|
Replies: 18
Views: 581
|
Forum: Java
May 17th, 2008, 3:47 PM
|
|
Replies: 51
Views: 1,441
Re: back to online battleship
For what its worth, I think that sending the board back and forth is a bad idea.
To approach this problem you should have classes that represent the board for each player. Then, you should have an...
|
Forum: Coder's Corner Lounge
May 17th, 2008, 3:31 PM
|
|
Replies: 18
Views: 581
Re: how to tell C++ from Java source code?
I can't imagine how useful knowing whether or not you're looking at c++ or java could possibly be. That being said, I also don't agree with some of posters in here. If your job requires you to know...
|
Forum: Coder's Corner Lounge
May 15th, 2008, 5:32 PM
|
|
Replies: 9
Views: 396
Re: Anyone a genius?
No... your first post said that it is possible to transform any algorithm into tail recursion using CPS. Your second post said its possible to transform any algorithm into something "similar" to tail...
|
Forum: Coder's Corner Lounge
May 15th, 2008, 10:59 AM
|
|
Replies: 9
Views: 396
Re: Anyone a genius?
This is interesting. From all indications, any function can be written tail recursively. But my professor indicated that there are cases where this is impossible. I have been unable to find any so...
|