• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

command line vs GUI

Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to take on a project to teach myself Java. I've been reading on Java for years and have done simple programming. The app I want to develop will be a full GUI driven app to include that side of Java as opposed to pure command line.

Does it make more sense to get a program running command line and add the GUI at the end or to develop the entire program together?

It seems simple when considering writing one class and function for a program and adding a GUI component to control that functionality with listeners etc. When the whole program comes together, it seems like there's extra stuff in a command line that isn't needed.

For instance, I'm thinking about the feedback and interface that would be written for menus in a command line prog. Since those options would be displayed in a GUI, it would seem wasteful to spend time writing those pieces.

Thoughts? (if that made sense)
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With a Model View Controller design (or other suitable layered design) you can develop the guts of a program from the command line, or better yet driven by JUnit tests. Then hooking up the GUI later can be a simple thing. You probably need a pretty good awareness of what the GUI will do and need in the way of model services. Some early sketches would not be out of line but building the GUI first is definitely not necessary.

Have you bumped into MVC or JUnit before? If not, ask about MVC in the OO, UML, etc. forum and JUnit in the testing forum. Or right here in beginner if you're more comfortable.
ice is for people that are not already cool. Chill with this tiny ad:
how do I do my own kindle-like thing - without amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!