Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.help > #1329
| From | "John B. Matthews" <nospam@nospam.invalid> |
|---|---|
| Newsgroups | comp.lang.java.help |
| Subject | Re: Sorry for disturbing this page.....I need help Again |
| Date | 2011-11-12 07:29 -0500 |
| Organization | The Wasteland |
| Message-ID | <nospam-2DC387.07295312112011@news.aioe.org> (permalink) |
| References | <508339c1-3b13-4c0f-a2b4-d3af4be61ab6@e2g2000vbb.googlegroups.com> |
In article <508339c1-3b13-4c0f-a2b4-d3af4be61ab6@e2g2000vbb.googlegroups.com>, Michael Adedeji <yankosmgt@gmail.com> wrote: > I was trying to control the speed and the size of the ball with > menu, but is not working. Kindly help. In addition to Lew's very cogent advice, I would add two points: 1. When seeking guidance, consider focusing on the smallest possible aspect of the problem by preparing an sscce [1]. 2. Notice how your code is growing by accretion, rather than design. In the specific case of menus, Action [2] "can be used to separate functionality and state from a component." In the general case of simulation, the Model–View–Controller pattern [3] is helpful. MVCGame [4] may serve as an introduction, and KineticModel [5] is a more elaborate example that also addresses elastic collision. [1] <http://sscce.org/> [2] <http://download.oracle.com/javase/tutorial/uiswing/misc/action.html> [3] <http://en.wikipedia.org/wiki/Model-view-controller> [4] <http://stackoverflow.com/questions/3072979> [5] <https://sites.google.com/site/drjohnbmatthews/kineticmodel> -- [Please omit signatures when responding.]
Back to comp.lang.java.help | Previous | Next — Previous in thread | Next in thread | Find similar
Sorry for disturbing this page.....I need help Again Michael Adedeji <yankosmgt@gmail.com> - 2011-11-11 01:31 -0800
Re: Sorry for disturbing this page.....I need help Again Lew <lewbloch@gmail.com> - 2011-11-11 07:18 -0800
Re: Sorry for disturbing this page.....I need help Again "John B. Matthews" <nospam@nospam.invalid> - 2011-11-12 07:29 -0500
Re: Sorry for disturbing this page.....I need help Again Lew <lewbloch@gmail.com> - 2011-11-12 10:01 -0800
Re: Sorry for disturbing this page.....I need help Again "John B. Matthews" <nospam@nospam.invalid> - 2011-11-12 22:38 -0500
csiph-web