GUI layout code generation question

Why is different code generated depending on where I want the gui layout code be placed (inside sources or in the .class files)? Namely, when selecting to put generated code into .class files, call to createUIComponents is always generated as call to private method (invokespecial) even if I am changing the access to this method to protected. By contrast, when compiling such a code with code generation into sources, everything compiles and behaves fine (and the createUIComponents method is called with invokevirtual).

Please sign in to leave a comment.