Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Don't do a GUI. In order to learn Swing you need to understand multi-threading. Commented Aug 3, 2011 at 12:49
  • 2
    There's a lot of useful tips and tools below. Since you are a beginner, I recommend sticking with the basics. Use simple solutions that just work, don't try to use all the big and complicated frameworks. (e.g. use CSV files to save data instead of JDBC if you never worked with databases) Commented Aug 3, 2011 at 12:59
  • @toto -- you only need to understand multithreading and concurrency from the standpoint of a few simple guidelines: 1) if all your actions are quick, trigger them from Swing (which runs on a single event dispatch thread) and don't worry about it; 2) if your actions are slower, use Executors.newSingleThreadExecutor() and let the swing actions add a task to that executor. Then Swing is single-threaded and so is your program's logic. Commented Aug 3, 2011 at 12:59
  • 1
    @Jason Those rules are simple when you know them and when you have some basic concepts of multithreading. I don't think captain will have time to untangle those things since is project will keep him fully occupied. Commented Aug 3, 2011 at 13:09