Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
Yes. The String to accept is passed in the constructor, not hard coded in the method.
If you don't understand my answer, don't ignore it, ask a question.
i have done that but it still comes up with the error
run:
Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - constructor DropTargetTextArea in class javaapplication24.DragAndDropExample.DropTargetTex tArea cannot be applied to given types;
required: java.lang.String
found: no arguments
reason: actual and formal argument lists differ in length
at javaapplication24.DragAndDropExample.main(DragAndD ropExample.java:66)
Java Result: 1
Last edited by stresstedout; March 4th, 2014 at 01:44 AM.
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.
If you don't understand my answer, don't ignore it, ask a question.
i am trying to fix it i did say its still the problem
here i have added
Last edited by stresstedout; March 4th, 2014 at 01:44 AM.
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.
If you don't understand my answer, don't ignore it, ask a question.
i thought u said i needed to them to the constructor
When did I say that?
If you don't understand my answer, don't ignore it, ask a question.
post #176 and #177
I said: The String to accept is passed in the constructor
There is nothing there about moving TWO Strings.
If you don't understand my answer, don't ignore it, ask a question.
i said okay..
so from the method i need to take out this code below and put in the constructor?
you said
yes. The String to accept is passed in the constructor
--- Update ---
anyways so i need to do Add a String as an arg in the new statement..
does this go in the public static void main(String[] args) {
????
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.
If you don't understand my answer, don't ignore it, ask a question.
sorry dont get angry please
That statement shows how little you know about coding java.i need to do Add a String as an arg in the new statement..
does this go in the public static void main(String[] args) {
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 learning to code a java program.
It could be that your English isn't good enough. Certainly your knowledge of java programming terms needs work.
If you don't understand my answer, don't ignore it, ask a question.
i know i need to add string as an argument in the constructor.
when i said does this go in public static void main(string args.
what i meant was do i need to add anything in there.. i didnt read what i wrote. anyways cheers for knocking any confidence i did have
If you'd work on smaller projects like what I suggested in post#161 maybe then ....
If you don't understand my answer, don't ignore it, ask a question.
so that is incorrect... i have realized now. i have amendend the code.
Last edited by stresstedout; March 4th, 2014 at 01:45 AM.