DevFaqActionAddProjectCustomizer

How do I add a new panel to a Project Properties dialog?

Create and register the panel (here for Java SE projects):

@ProjectCustomizer.CompositeCategoryProvider.Registration(
    projectType="org-netbeans-modules-java-j2seproject")
public class BlaPanelProvider implements ProjectCustomizer.CompositeCategoryProvider {
    public @Override Category createCategory(Lookup context) {
        return ProjectCustomizer.Category.create(
                "Bla",
                "Bla",
                null,
                null);
    }
    public @Override JComponent createComponent(Category category, Lookup context) {
        return new BlaPanel();
    }
}

See also Project Properties GUI for custom project templates and Adding New Tabs to the Project Properties Dialog in NetBeans IDE.

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo