[Swing] How do I: Multiple JFrames approach to utilize multiple content editors?

I’m looking at this Stack Overflow question and answer here:

My main goal is to use multiple JFrames for the end users to easily use my level editor to create contents. I know that there exists a common flow saying that multiple JFrames is a bad practice, but I feel as if that’s not entirely the case.


Exhibit A: Warcraft III World Editor (Main Editor + Triggers Editor)

Main Editor:

Triggers Editor:


From these two screenshots (both of which are crappy, by the way…), you can see that they consist of two different windows, which can be run side-by-side. Each window expresses functionality in two different aspects of a custom map, one of which focuses on the terrain and units, while the other is focused on triggers and scripts.

This is something I wanted to do with my level editor, one maintains the tilesets, while the other focuses on the triggers/events/scripting aspects of my game.

I wanted to know how to approach the multiple JFrames system, and what best practices go with this. There are some suggestions such as offering a static method [icode]open()[/icode] that opens up a new JFrame along with the reference to the parent JFrame, or call it when a button is activated (similar veins to Exhibit A’s approach).

Can anyone provide other alternative suggestions? This is so I can consider multiple perspectives as well as different approaches to implement this system. That’ll be appreciated.