One JFrame At A Time

I have a JFrame made up of various boxes When the user clicks on a box, a mini-JFrame pops up. So every time the user clicks on a box a mini-JFrame will appear. Is it possible to make sure that only one mini-JFrame appears at a time?

So what I pterry much am asking. if a mini-JFrame is already open and the user clicks on a box in the main JFrame, I want the already open mini-JFrame tol close so that only the new one will be visible?

Thank you.

[466 byte] By [java4life87a] at [2007-11-27 9:15:29]
# 1
try modal windows. it a jframe i believe you can make one like thissuper("title", true); when you construct it.
mkoryaka at 2007-7-12 22:04:36 > top of Java-index,Java Essentials,Java Programming...
# 2
Swing related questions should be posted in the Swing forum (like you've done in the past).
camickra at 2007-7-12 22:04:36 > top of Java-index,Java Essentials,Java Programming...
# 3
Sorry camickr , you're right, I'm just so use to posting gere.
java4life87a at 2007-7-12 22:04:36 > top of Java-index,Java Essentials,Java Programming...
# 4
;
java4life87a at 2007-7-12 22:04:36 > top of Java-index,Java Essentials,Java Programming...