NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

[platform-dev] Re: Timing out NotificationDisplayer

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users
View previous topic :: View next topic  
Author Message
Charles Bedon
Posted via mailing list.





PostPosted: Thu Dec 23, 2010 9:43 pm    Post subject: [platform-dev] Re: Timing out NotificationDisplayer Reply with quote

Hello

I was searching a way to do that a while ago, but I didn't find anything. Please post the solution if you happen to figure it out. My current workaround is to use myLastNotification.clear() before to show a new one. That way only the last notification is shown instead of having the whole pile.

2010/12/23 luca dazi <address-removed ([email]address-removed[/email])>
Quote:
Hello list!

I'm using NotificationDisplayer in several modules of my application.
Is there a way to time out ballons tooltips if the user doesn't interact with them?


I've noticed that the default notification displayed for standard exceptions disappears after a while. I cannot achieve the same result using NotificationDisplayer.getDefault().notify. Even using NotificationDisplayer.Priority simply puts the new notifications on top ot bottom of the list.


Any help on this?


Thanks!


Luca



--
Charles Edward Bed
Back to top
luca dazi
Posted via mailing list.





PostPosted: Fri Dec 24, 2010 4:48 am    Post subject: [platform-dev] Re: Timing out NotificationDisplayer Reply with quote

Great! At least now I have a workaround!Thanks Charles! Smile


I'm just digging right now into the source code to figure out how standard exceptions are timed out... As soon as I find something significant, I'll surely update.


Luca.

2010/12/23 Charles Bedon <address-removed ([email]address-removed[/email])>
Quote:
Hello

I was searching a way to do that a while ago, but I didn't find anything. Please post the solution if you happen to figure it out. My current workaround is to use myLastNotification.clear() before to show a new one. That way only the last notification is shown instead of having the whole pile.

2010/12/23 luca dazi <address-removed ([email]address-removed[/email])>

Quote:
Hello list!

I'm using NotificationDisplayer in several modules of my application.
Is there a way to time out ballons tooltips if the user doesn't interact with them?


I've noticed that the default notification displayed for standard exceptions disappears after a while. I cannot achieve the same result using NotificationDisplayer.getDefault().notify. Even using NotificationDisplayer.Priority simply puts the new notifications on top ot bottom of the list.


Any help on this?


Thanks!


Luca





--
Charles Edward Bed
Back to top
luca dazi
Posted via mailing list.





PostPosted: Wed Dec 29, 2010 11:20 pm    Post subject: [platform-dev] Re: Timing out NotificationDisplayer Reply with quote

Hello!

I just had a little spare time to experiment on this.
As my insigth on the source code has not lead to a solution, I finally decided to implement an helper static class to be used when creating timed notifications.
Here it is:


public class NotificationHelper {


Back to top
Charles Bedon
Posted via mailing list.





PostPosted: Thu Dec 30, 2010 2:22 pm    Post subject: [platform-dev] Re: Timing out NotificationDisplayer Reply with quote

Hello

Yep, a separate thread seems to be the best way to go. However it's weird that the API doesn't support it by default.

2010/12/29 luca dazi <address-removed ([email]address-removed[/email])>
Quote:
Hello!

I just had a little spare time to experiment on this.
As my insigth on the source code has not lead to a solution, I finally decided to implement an helper static class to be used when creating timed notifications.
Here it is:


public class NotificationHelper {


Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo