Code example for LogRecord

Methods: setResourceBundle

0
    public static class PropertyVetoExceptionThatNetBeansLikes extends PropertyVetoException implements Callable {
        public PropertyVetoExceptionThatNetBeansLikes(String mess, PropertyChangeEvent evt)  {
            super(mess, evt);
        } 
        public Object call() throws Exception {
            LogRecord lg = new LogRecord(Level.ALL, getMessage());
            lg.setResourceBundle(new ListResourceBundle() {
                protected Object[][] getContents() {
                    return new Object[][] { {getMessage(), getMessage()} };
                } 
            }); 
            return new LogRecord[] { lg };
        } 
    } 
}