BDK1.1 is thrown when it starts.

xiaoxiao2021-03-06  14

During the learning process, due to the BDK of Sun on the tutorial, I went down, and the results were running, there was a sunw.demo.gettons.explicitbeaninfo.gets.ExplicitBeanInfo.geTeventsetDescriptors () This method was thrown, and I found it on Sun's website. For a long time, I finally found the solution. I am under Windows XP, and 2K should apply.

First, according to the path: demo / sunw / demo / buttons / explicitbuttonbeaninfo.java

Find this file, open, in about 45th, there is such a sentence:

EventsetDescriptor Push = New EventSetDescriptor (Beanclass, "ActionPerformed", Java.awt.Event.ActionListener.class, "ActionPerformed");

Replace the above sentence:

EventsetDescriptor push = new event setdescriptor (beanclass, "action", java.awt.event.ActionListener.class, "actionperformed");

(It is actually replacing the "ActionPerformed" of the second line to "action").

After replacing it, compile (if a compilation error occurs, all Java files of the directory in the file are compiled once, Javac * .java).

Replace the generated explicitButtonBeanInfo.class file: jars / buttons.jar

The same name file (I use WinRAR replacement, very convenient) ^ _ ^.

If you don't understand, you can send it to me, huh, huh.

Hilber@mail.9cbs.net

转载请注明原文地址:https://www.9cbs.com/read-46916.html

New Post(0)