NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
Charles Bedon Posted via mailing list.
|
Posted: Thu Dec 23, 2010 9:43 pm Post subject: [platform-dev] Re: Timing out NotificationDisplayer |
|
|
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.
|
Posted: Fri Dec 24, 2010 4:48 am Post subject: [platform-dev] Re: Timing out NotificationDisplayer |
|
|
Great! At least now I have a workaround!Thanks Charles!
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.
|
Posted: Wed Dec 29, 2010 11:20 pm Post subject: [platform-dev] Re: Timing out NotificationDisplayer |
|
|
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.
|
Posted: Thu Dec 30, 2010 2:22 pm Post subject: [platform-dev] Re: Timing out NotificationDisplayer |
|
|
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 |
|
 |
|
|
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
|
|
|
|