Solved

Always on top like MSN taskbar notifier Popup

Posted on 2004-09-29
5
489 Views
Last Modified: 2008-03-10
I am trying to make a Popup like MSN (unfortunate requirement from Client :))
I am extending JDialog class and used this.setUndecorated(true); to remove all the title bars ect from it.
Then I could paint an Image on it.

Now the problem which i am facing is to keep the window on top of every control.
I have used
this.toFront(); method to keep it on top of the stack but it doesnot stay on top as soon as I click some application it goes back.. So what I did is in Paint method, i called this.toFront();

but still it doesnot behave like MSN

Is there anyway I  can keep it on the Top as MSN popup, (I cannot make it a Model)

Any one knows about some native calls for this purpose?
Thanx for suggestions
0
Comment
Question by:armoghan
  • 2
  • 2
5 Comments
 
LVL 92

Expert Comment

by:objects
Comment Utility
best to ask in the relevant OS programming TA
0
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 100 total points
Comment Utility
0
 
LVL 92

Accepted Solution

by:
objects earned 400 total points
Comment Utility
0
 
LVL 18

Author Comment

by:armoghan
Comment Utility
The link given by objects uses some class which i could not find, but I found someother workaround
Thanx
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
:-)
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
noX challenge 17 75
strCopies  challenge 17 73
java set up 1 44
what is the difference between "sudo su" and "su - root" 6 67
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
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.

771 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

10 Experts available now in Live!

Get 1:1 Help Now