If you'd work on smaller projects like what I suggested in post#161 maybe then ....
Type: Posts; User: Norm
If you'd work on smaller projects like what I suggested in post#161 maybe then ....
That statement shows how little you know about coding java.
There is no way you can hope to finish this project with your current java knowledge. I'm not sure that you are currently capable of...
This is getting to be a big waste of time. I'm getting tired of repeating myself. If you'll look back through the posts on this thread, this topic has been covered several times.
I said: The String to accept is passed in the constructor
There is nothing there about moving TWO Strings.
When did I say that?
Did you fix the error shown in posts#172 and 178?
Those two Strings: string1 and string2 are supposed to be deleted, not moved around.
Is that the same error as in post#172
What did you do to fix that error? If you don't fix the errors they don't go away and you are wasting time trying to continue if you don't fix the errors.
Yes. The String to accept is passed in the constructor, not hard coded in the method.
The DropTargetTextArea constructor takes a String but there wasn't a String provided.
Add a String as an arg in the new statement.
The constructor takes a String but there wasn't a String provided.
Sorry, I don't know anything about databases. Forget about using databases. Use image files in a folder.
What happened to the test program that was to have two different DraggableLabel objects...
Did that compile and execute and do what you wanted?
If not post the errors or explain what happened and what you want to be different.
??? What are you waiting for? There is an example that you coded in the program. Copy the technique shown there.
See the constructor for the DraggableLabel class. It has a String as arg
You said: im lost
I think you need to work on simpler projects to learn the techniques needed for this larger program.
The current program you are/were working on was a test program to get the...
Ok, put the current program aside and work on a new very small test program that uses the technique you need:
Write a test program that
has a constructor that takes a String as arg
the...
I have told you what needs to be done. Re-read the posts on the thread.
This is the problem you need to solve:
If there are 30 images as drop targets, each with a different String to be shown...
Those changes do not make any sense.
Go back to the last version of the code that compiled and executed and start again.
public class DropTarget(int testing, int test){
What are supposed to be in the two int values passed to the constructor: testing and test?
What happened to the definition for:
public static...
See post#133 for an example of a constructor that takes a String as argument.
That is VERY BASIC java programming. If you can not code a constructor now after so much coding, you need to go back...
This is post#114
What is your question about post #114?
See post#133 for an example of a constructor that takes a String as argument.
This is post#114
What is your question about post #114?
Does it compile and execute without errors now?
Does it work like you want?
That is invalid code. There should not be any "s
Yes, that is how I would do it.