end class DotGraphic I know it's not exactly SSCCE, but I don't know which part of the code is wrong. Package import import import import import import .ColoredDotsAppModel public class ColoredDotsAppView ![]() I somehow need to get the MouseListener (currently on the lPane in my view) and move it into the controller. But since I'm not using Swing controls (buttons and such) in ColoredDots I can't simply use the ActionListener in the controller. I read this article and I tried to model ColoredDots more like the Calculator. When you look at my code, you'll see I use the Observer interface and the Observable class. ![]() (No binaries, but the program compiles and works). The test case program is called ColoredDots and you can find the Eclipse project files here. ![]() I have a complex project I wish to realize, and to develop a framework I wrote a cute little program that I could later expand into my project. I still find it kind of hard thinking in OO and I hope to learn a lot from you guys. A bit about myself first: I'm a fairly inexperienced Java programmer but I've worked with other (mostly sequential) languages before.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |