Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

General GUI Design Resources  RSS feed

 
John Smith
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I'm looking for guidelines and general information about designing complicated GUI applications, i.e., applications that have many settings, windows, etc. For example, is it best for each window (such as an options window) to be opened in its own method in some big MainApplication class? If you take this approach, you will have a bunch of window creating methods. Or is it better for each window to have its own class? If you take this approach, you'll have a bunch of classes in your project. Does anyone know of any books or web resources that deal with this sort of thing? I guess I want to know the best approach to building a large application and putting everything together so that it is easy to understand and easy to maintain. Thanks...
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I don't know of any resources. But I do know this from programming experience and education. I think it is always best to have as many classes as is necessary. Reasons are many, but just a few are:
1. Code re-use. Putting methods in thier own classes allows you to re-use the code if done right.
2. Updates/Problems/Fixes - If you know what method you have a problem with, why search through some 10,000 lines of code. Just go to that class file. Makes it easier.
Also, I would suggest using a JDesktopPane and implementing internal Frames in the JDesktopPane.
Good Luck.

------------------
Happy Coding,
Gregg Bolinger
 
John Smith
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply - using a JDesktopPane is an excellent idea. I haven't heard of that class until now.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No Problem! If you need any help getting started with Internal Frames let me know.
You can E-mail me at Gregg.Bolinger@intrustbank.com also.
Have Fun!!

------------------
Happy Coding,
Gregg Bolinger
 
John Smith
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On a related note - does anyone have any suggestions on the best way to separate the GUI from the underlying implementation/data. I've heard of some people using the Facade design pattern but I don't quite understand how that applies. Any clarifications or other ideas? Thanks in advance...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!