NullPointerException on PLAF change to Motif
问题 Can anybody see what I have done to cause the NullPointerException (stack trace below)? The panel appears OK: Textual output os.name: Windows Vista os.version: 6.1 java.version: 1.6.0 java.vm.version: 1.6.0-b105 java.vendor: Sun Microsystems Inc. That ( 1.6.0-b105 ) is ancient, it is the default run time environment of Netbeans here. Must update to a version 7 JRE. Code import java.awt.*; import java.awt.event.*; import java.util.HashMap; import java.util.Map; import javax.swing.*; import