Solved

Java popup without losing focus?

Posted on 2009-04-12
4
267 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
groupNoAdj 7 96
Java SE 8u111  Lot of stuff broke 11 69
session migration servlets 2 38
object oriented programming comparison 5 72
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
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.

810 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