|
-
December 1st, 2009, 07:04 AM
#1
Why wasn't "Java2D demo" built with MVC architecture?
Java2D demo is packaged with JDK. Its path is "%JAVA_HOME%\demo\jfc". (I'm using JDK 1.6.0_16)
1) I has searched and I don't see any Observer or Observable existence in source files of Java2D Demo. Are big projects not able to be designed with MVC architecture? If yes, is it hard to design them?
2) I have above questions because I'm doing my project assignment and I'd realized that it is too difficult to design it. I will be grateful if you give me some advices.
-
December 1st, 2009, 09:21 AM
#2
Re: Why wasn't "Java2D demo" built with MVC architecture?
The Java 2D Demo uses Swing, which is an MVC GUI component toolkit. There's more to MVC than observers and observables, and Swing uses all MVC features. In particular, it uses observers and observables throughout, but generally calls them by different names - e.g. observers are usually 'Listeners'.
Instead of jumping to conclusions about the code by searching for arbitrary names, you really ought to find out how it works, or read about Swing in the Java Tutorials.
The outcome of any serious research can only be to make two questions grow where only one grew before...
T. Veblen
Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|