| | |
Passing Info Between Forms
Thread Solved |
•
•
Join Date: Sep 2007
Posts: 3
Reputation:
Solved Threads: 0
I am passing information between two forms. Up to now, I have passed information from one form to another. Is there another way to do this?
[DisplayDie dpDie = new DisplayDie(dp); // Getting constructor error in this line
DisplayPanel dp = new DisplayPanel(dpDie,dpDie);]
When I swap the lines, error moves to top line.
[DisplayPanel dp = new DisplayPanel(dpDie,dpDie); // Getting constructor error in this line lineDisplayDie dpDie = new DisplayDie(dp); ]
[DisplayDie dpDie = new DisplayDie(dp); // Getting constructor error in this line
DisplayPanel dp = new DisplayPanel(dpDie,dpDie);]
When I swap the lines, error moves to top line.
[DisplayPanel dp = new DisplayPanel(dpDie,dpDie); // Getting constructor error in this line lineDisplayDie dpDie = new DisplayDie(dp); ]
You have both DieDisplayInterface and DisplayDieInterface shown there - which is it?
The fact that the confusion arose at all is a clear sign that you should consider a better name for the interface. Is there more than one class that implements the interface? If not, will there be? If both answers are no then you don't even need a separate interface definition.
The fact that the confusion arose at all is a clear sign that you should consider a better name for the interface. Is there more than one class that implements the interface? If not, will there be? If both answers are no then you don't even need a separate interface definition.
![]() |
Other Threads in the Java Forum
- Previous Thread: Switch statement
- Next Thread: Don't understand why I'm getting this error
| Thread Tools | Search this Thread |
911 addball addressbook android api append applet application apps array arrays automation binary bluetooth businessintelligence button card chat class client code collision component crashcourse css csv database eclipse ee error fractal free game gis givemetehcodez graphics gui html ide image input integer integration j2me japplet java javaarraylist javadoc javafx javaprojects jni jpanel julia jvm linux list loan loop machine map method methods migrate mobile netbeans newbie objects oriented output panel phone physics problem program programming project radio recursion reporting scanner se server service set sms socket software sort sql string swing test textfield threads transfer tree trolltech ubuntu utility windows






