Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to understand how a radio button is created in a Dynamic field by reading from an XML using Netbeans 7.0.

I know the radio button is created because of the XML being read from database, but I cannot see how the radio button is created.

Also, since I don't know where to place the break points, I can't see how I would debug the creation of components on the Dynamic Editor.

Maybe I am trying a wrong approach or something, so how do I efficiently debug an application like this?

share|improve this question
up vote 3 down vote accepted

All you need might be a conditional breakpoint. Both Netbeans and Eclipse allow you to edit properties of a breakpoint by right-clicking it and add a condition (a piece of code) that the debugger will evaluate every time it reaches the breakpoint, and stop only of the condition is true. In your case the condition would be some string that identifies the component being created dynamically as the one you're interested in.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.