Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to organize a Swing GUI application?
    primarykey
    data
    text
    <p>I've written a few GUI's using Swing and I know about MVC, but I never found a good way to really organize my code somehow. What I am looking for is something like the folder structure that maven introduces for each new project. Another example is rails, where MVC is introduced through the folder structure automatically. Is there something similar for Swing?</p> <p>It would also be nice to see a book that describes the development of a larger Swing Application. All I find are books about design-guidelines where design refers to the look of the application. Other Swing books (like O'Reilly) describe in detail all the swing components, but where is any information about the big picture?</p> <p>Are there any good examples of a swing gui, where you'd say "That's how you organize code/folders/packages for swing!"?</p> <p>EDIT: I found the following site <a href="http://www.ibm.com/developerworks/java/tutorials/j-springswing/section7.html" rel="noreferrer">http://www.ibm.com/developerworks/java/tutorials/j-springswing/section7.html</a> which describes the usage of spring while creating a GUI. It is a quite old example and it doesn't answer my question, but it is a step into the right direction. It also mentions Spring RCP, but I'm not sure if it could be the solution.</p> <p>EDIT2: I still didn't find any better answers. Does anybody know an example for a ideally structured Swing GUI which is Open Source? Does anybody know a book, which describes it? And if not for Swing, then maybe for GUI's in general?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COI am afraid there is no comprehensive resource that answers this question as a whole. Instead, you'll have to check several (many) resources on the web, each describing a different aspect. You can also check concrete examples of Swing applications (open source) and see how they are organized. What's really important, to my viewpoint, is the 3rd-party tools you wanna use (e.g layouts, frameworks, tables, widgets, event bus, DI, resource injection...); there are really loads of them, impossible to enumerate here. As a starting point, you could take a look at my GUTS-GUI project.
      singulars
    2. CO@JFpoilpret: Could You provide a link? And, last time I checked (longer than year ago) it had rather sparse documentation. I mean, the GUTS-GUI is packed with incredibly useful ideas, but I had to find them by carefully studying it's code. An overall documentation would be a huge time saver.
      singulars
    3. CO@Rekin here is the link: http://kenai.com/projects/guts/pages/Home. Most documentation is in the javadoc, which is, I believe, quite comprehensive; in particular you have to take a look at the package description part which is much more than a single sentence (contrarily to many other projects). Besides there are some example applications in SVN that are good starting points.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload