dialog no longer fully modal

I've created a JDialog and setmodal to true, however when the dialog window appears I can still interact with the main application. I want to make it that that can't interact with the main app while the dialog is displayed. Any ideas?Many thanks
[261 byte] By [BigBadBurrowa] at [2007-11-27 10:00:09]
# 1

if you are going to keep the details of your code secret, then I'm going to keep the details of my answer secret.

But seriously, you can't seriously expect anyone to be able to help you based on this skimpy information, can you? A good rule of thumb: try to put as much effort into your post as you'd like someone to put into answering it. Another rule of thumb: try to make it as easy as possible for the volunteers here to help you.

Good luck!

petes1234a at 2007-7-13 0:31:19 > top of Java-index,Java Essentials,Java Programming...
# 2
Did someone get out of bed on the wrong side this morning?
BigBadBurrowa at 2007-7-13 0:31:19 > top of Java-index,Java Essentials,Java Programming...
# 3
> Did someone get out of bed on the wrong side this> morning?lol. nah, i'm just trying to be helpful. if you follow my advice, you'll get answers. if not, well, who knows.
petes1234a at 2007-7-13 0:31:19 > top of Java-index,Java Essentials,Java Programming...
# 4

Still posting in the wrong forum as well. You should be searching the Swing forum for solution before posting your question in the Swing forum if you don't find the answer.

I see the question wasn't that important anyway as you still haven't posted your SSCCE showing what your code is like.

You had time to post a useless reply, but not time to post demo code, so I guess you really don't want help.

camickra at 2007-7-13 0:31:19 > top of Java-index,Java Essentials,Java Programming...
# 5

> I've created a JDialog and setmodal to true, however

> when the dialog window appears I can still interact

> with the main application. I want to make it that

> that can't interact with the main app while the

> dialog is displayed. Any ideas?

Stop doing it wrong.

cotton.ma at 2007-7-13 0:31:19 > top of Java-index,Java Essentials,Java Programming...
# 6
and you thought that I was cranky?
petes1234a at 2007-7-13 0:31:19 > top of Java-index,Java Essentials,Java Programming...
# 7
> and you thought that I was cranky?I'm not cranky, I am giving the best answer possible based on the information provided.
cotton.ma at 2007-7-13 0:31:20 > top of Java-index,Java Essentials,Java Programming...
# 8
> > and you thought that I was cranky?> > I'm not cranky, I am giving the best answer possible> based on the information provided.and I agree w/ you 100%. The op is getting answers that s/he deserves.
petes1234a at 2007-7-13 0:31:20 > top of Java-index,Java Essentials,Java Programming...
# 9
guess #1, change the ordersetVisible(..)setModal(..)tosetModal(..)setVisible(..)
Michael_Dunna at 2007-7-13 0:31:20 > top of Java-index,Java Essentials,Java Programming...
# 10
guess #2Pass the frame of the main application to the constructor of the dialog.
dwga at 2007-7-13 0:31:20 > top of Java-index,Java Essentials,Java Programming...
# 11

> guess #2

> Pass the frame of the main application to the constructor of the dialog.

Why waste time guessing? Try it. It doesn't matter whether you specify an owner or not.

The OP has been asked to post demo code which can be done in about 6 lines of code. If the OP is not willing to make and effort, why should we.

Majority of the time if you take 5 minutes to create a SSCCE you will find your silly mistake. Thats why I keep asking for one on such a simple question like this.

camickra at 2007-7-13 0:31:20 > top of Java-index,Java Essentials,Java Programming...