•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 391,941 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,902 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting
Views: 186 | Replies: 4 | Solved
![]() |
•
•
Join Date: Sep 2007
Posts: 3
Reputation:
Rep Power: 0
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.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Java Marketplace
Other Threads in the Java Forum
- Previous Thread: Switch statement
- Next Thread: Don't understand why I'm getting this error



Linear Mode