To avoid this problem, do the following:
Add the following import to your form:
import java.beans.Beans;
Surround any code you do not want to execute when opening the form in the NetBeans form designer in the following block:
// Don't execute the following code in the
designer
if (!Beans.isDesignTime()) {
// unexecuted code goes here
if (!Beans.isDesignTime()) {
// unexecuted code goes here
}
No comments:
Post a Comment