Example #1
0
 static {
   try {
     properties = new Properties();
     properties.load(Notepad.class.getResourceAsStream("resources/NotepadSystem.properties"));
     resources = ResourceBundle.getBundle("resources.Notepad", Locale.getDefault());
   } catch (MissingResourceException | IOException e) {
     System.err.println(
         "resources/Notepad.properties " + "or resources/NotepadSystem.properties not found");
     System.exit(1);
   }
 }
 private void formatrb(
     MLevel l,
     String srcClass,
     String srcMeth,
     String rbname,
     String msg,
     Object[] params,
     Throwable t) {
   ResourceBundle rb = ResourceBundle.getBundle(rbname);
   if (msg != null && rb != null) {
     String check = rb.getString(msg);
     if (check != null) msg = check;
   }
   format(l, srcClass, srcMeth, msg, params, t);
 }