> So I was wondering if this sort of question asking how to use a certain API in a program such as NetBeans IDE is allowed here?

You may check first if your API question fits with the following points (taken from the [Help Center article](https://stackoverflow.com/help/on-topic)):

> > Stack Overflow is for professional and enthusiast programmers, people who write code because they love it. We feel the best Stack Overflow questions have a bit of source code in them, but if your question generally covers…
> > 
> >  - a specific programming problem, or
 - a software algorithm, or
 - software tools commonly used by programmers; and is
 - a practical, answerable problem that is unique to software development

So yes, you can ask such questions about the [tag:netbeans] [API](https://stackoverflow.com/search?tab=votes&q=%5bnetbeans%5dAPI) (note to add the mentioned tag).

Take care to provide a [Minimal, Complete, and Verifiable example](https://stackoverflow.com/help/mcve) of how you tried to use the API and where and how exactly you are stuck in using it from your code.