Solved

Java popup without losing focus?

Posted on 2009-04-12
4
265 Views
Last Modified: 2013-12-29
I'm trying to replicate the sorta Windows Outlook Express popup when you get an email, or when you get a chat message, in Java.

The popup grows from the bottom right corner, it has some text in it.  But the real trick is, while it's the window on top, it doesn't take the focus away from the rest of whatever you're looking at.  Anyone know of any Java classes in J2SE that do that sort of, background popup?
0
Comment
Question by:ecuguru
  • 2
4 Comments
 
LVL 24

Expert Comment

by:sciuriware
ID: 24125939
That's a modeless dialog.

;JOOP!
0
 
LVL 24

Accepted Solution

by:
sciuriware earned 250 total points
ID: 24125940
If you create a dialog-like:

JDialog d = new JDialog(mainFrame, false) ;

you got one. 'mainFrame' can be null.

;JOOP!
0
 
LVL 25

Assisted Solution

by:InteractiveMind
InteractiveMind earned 250 total points
ID: 24126023
I personally use a JWindow, and call setAlwaysOnTop(true). I've never noticed the problem.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
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 “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

760 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

20 Experts available now in Live!

Get 1:1 Help Now