I am using Netbeans gui, the fast easy drag and drop, lets say a created a JButton, named it "Start", I added an event (ActionPerformed) for this JButton, so I get the following method
private void JButtonActionPerformed(java.awt.event.ActionEvent evt)
{
// TODO add your handling code here:
}
Then I added a JProgressBar, I want this progressbar to start when I click on this button, and be able to control its speed...etc..