setModal(boolean) method for a Frame?

Posted on 2000-05-04
Last Modified: 2012-06-21
There's a setModal(boolean) method for a Dialog, and what should I do in order to make my Frame modal?
Question by:kalle73
  • 4
  • 2

Expert Comment

ID: 2777167
You can't. Frames can't be modal.

Author Comment

ID: 2777240
Thanks. Any suggestions how should I solve such a problem? What I want is to add my applet to some component (frame for now), which can be modal.

Author Comment

ID: 2777246
Thanks. Any suggestions how should I solve such a problem? What I want is to add my applet to some component (frame for now), which can be modal.
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

LVL 16

Accepted Solution

heyhey_ earned 50 total points
ID: 2777520
why don't you use modal Dialog ?

Author Comment

ID: 2777649
It requires a bunch of changes. Ok, I see I'm compelled to use Dialog now, just thought I can use my Frame... Nevertheless, thanks.
LVL 16

Expert Comment

ID: 2777656
well - the only difference is that
1. Dialog does not have menu
2. Frame can't be modal.

Author Comment

ID: 2787901
Yep, actually it wasn't that hard to change the whole thing. Thanks once again.

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
eclipse package explorer vs project explorer view 2 121
Weekend adv creator 3 36
more than one jdk and one jre 1 41
going to wrong jsp page 2 18
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now