Hi there,
I have these both functions:
private void changeKonfig(Locale loc){
spra = loc;
System.out.println("spra: " + spra);
ResourceBundle bundle =ResourceBundle.getBundle("Texte",loc);
Enumeration<String> e=bundle.getKeys();
while(e.hasMoreElements()){
String k=e.nextElement();
String v_s=bundle.getString(k);
UIManager.put("DefaultText."+k,v_s);
}
updateComponents();
pack();
}
private void updateComponents(){
Enumeration<JComponent> e=v.elements();
while(e.hasMoreElements())
e.nextElement().updateUI();
}
Can anyone tell me why I always get an NullPointerException when I try to access my "display" within these two functions? Anywhere else is no problem ...
Thanks