Internosis - knowledge management,ecommerce and project consulting
*Home>>>Application Development

How do I write GUI based applications (desktop apps) without using the event-driven-paradigm?


I'm currently developing a small application in Java, which makes use of the Swing API. As such, the application is heavily 'event driven'. The problem with this is that the flow of control becomes obscured. So I was wondering if there is an alternative approach. Do all programming languages use this event-driven-paradigm in GUI development? I've used other languages, such as Modula-2, but found no built in support for GUI development (like Swing). So how are/were GUI's developed using languages like modula-2, Pascal etc? Any help will be greatly appreciated.

I think you should first ask yourself why you are designing a GUI based application at the first place. As long as it's a GUI then there must be interactivity between your application and the user. As long as there is interactivity, there must be something you'ld like to happen as a response to user's action. As long as you want to respond to the user you must handle events, because it's only through events you determine if the user does 1 thing or the other.
So now is it possible for you to program without handling events?
Events are there to make the flow of your application possible. A dead body is less useless than your application if it doesn't flow...
Even in the command driven applicaions you have to read and evaluate a users input in order to decide what should be your next move!
I think what you need is a solid understanding of objects and the event model. Soon after you understand object oriented programming (OOP), you'll appreciate the concept of events... then flow of control will not become obscured any more!
Within my little experience I know how it feels when you are writing programs. You tend to assume that you are really inside the computer and ineracting with your code... hahaha. A times you need to take some rest, in order to feel that you are not one of the objects in your application. But someone standing over them, defining their structure and functionality. Then you can be able to think and come up with better ideas and solutions...
Gd luck.

You need to get your head around event driven programming instead of looking for something else. One area that can make the flow get out of control is if you are not using objects, and you are changing global variables during execution.

Back in the old DOS days you did not have to worry about multiprocesses changing databases or variables at the same time. Now you do. There are many implementations of objects and that is the area you need to make some decisions.

Keep climbing the learning curve --- all will be revealed

Tags
  E-Commerce   Supply Chain   Data Mining   ERP   CRM   Application Development   Software Consulting   Software Development   Information Technology   Technology Consulting   Project Training
Related information
  • What you thinking about surveyers?

    George Washington was a surveyor before he was President.

    ...
  • Here is why the earth is only a few thousand years old....hence evolution or intelligent design is impossible.

    Who cares if it's copy and paste? This is a great collection of facts for those who want to have knowledge at hand to defend the Faith.

    ...
  • College Economics?

    Econ is NOT easy. That class sounds like an overview of several classes. Micro economics is about businesses (the privite sector) Marco econ is big picture stuff and relates to the government...

  • Significance of research in marketing鈥??

    "I" have to discuss this? NO, "I" don't!!! It's your homework. Do it yourself.

    ...
  • I feel anxious and I don't like it?

    I don't think you've submitted your CV nearly enough. You should have contacted 100 to 200 potential employers to attempt to get your foot in the door somewhere. You might get lucky wit...

  • How to start generating excellent ideas?

    To generate ideas in my company we get together over Pizzas and Beers and brainstorm. Make sure you do it right (no bad ideas, no negative responses) and have enough people in the room in a relaxed...

  • What are the legal issues?

    HAHAHA, there is no way in he** anyone is going to read that whole thing...this has to be a joke.

    ...
  • The actual decision of the case and the legal issues?

    The Plainitff was granted leave to commence both sets of proceedings, provided she agree to indemnify the 5th Defendant for any costs of the derivative action; she does not have to indemnify the 5t...

  •  

    Categories--Copyright/IP Policy--Contact Webmaster