i have a button and when it is clicked i want it to open a new form in netbeans. how do i do this...???

I don't know how to do it in netbeans.
In java, you would add a listener to the button and when the button is clicked and the listener code is called, you would open the new form.

Under the firstfew lines of code add this. (your main class) or public init()
Button okButton = new Button("Click Here!);
okButton.addActionListener(this);

under actionPerformed class
if (okButton.getState()){

place your actions here

}

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.