This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 125938 - Being able to replace standard dialogs with own versions
Summary: Being able to replace standard dialogs with own versions
Status: RESOLVED INVALID
Alias: None
Product: platform
Classification: Unclassified
Component: Dialogs&Wizards (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker with 1 vote (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-24 17:06 UTC by ibeaumont
Modified: 2012-06-26 10:58 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ibeaumont 2008-01-24 17:06:16 UTC
I need to change the standard exception dialog that appears (I want to add branding/make it more user friendly/add a
button to email error).

According to issue 35067 this is possible be changing the DialogDisplayer 
<quote>
[low] allow addon modules to change how errors are reported - if there is a nice dialog with error message and OK
button, should it be possible for the modules to replace it and display something else? This is possible by replacing
the DialogDisplayer in lookup by own implementation.
</quote>
I challenge someone to actually practically do this - and give me an example how.
I've gone down this route and don't see this as being possible - basically I'd end up having to replace the whole of the
NBDialog system.

What I really want to be able to do is to plug in my own version of NotifyDescriptor - so I can design how I want these
standard dialogs to look.
Comment 1 Stanislav Aubrecht 2012-06-26 10:58:04 UTC
You need to create a register your own java.util.logging.Handler and suppress the default NetBeans one. Then you can report exceptions in any way you want.