[源码分析]:怎么理解下面的代码的作用?
class Notepad extends JPanel {
private static ResourceBundle resources;///???
static { ///?????
try {
resources = ResourceBundle.getBundle("resources.Notepad",
Locale.getDefault());
} catch (MissingResourceException mre) {
System.err.println("resources/Notepad.properties not found");
System.exit(1);
}
}
Notepad() {
}
}