Reputation: 5717
I am trying to load a form when clicking a button.
private void btnAddRecordMouseClicked(java.awt.event.MouseEvent evt) {
// TODO add your handling code here:
}
This is my method. The form name is Admin.java.
Any ideas? Thanks
Upvotes: 0
Views: 4657
Reputation: 1
Hmm i just had a problem like yours and I managed to sort it out... so I'm willing to share.
Upvotes: 0
Reputation: 324088
Maybe something like:
Admin form = new Admin();
form.setVisible( true );
I suggest you start reading the Swing tutorial for the basics of using Swing. Maybe something like "How to Write an Action Listener".
And use proper terms. What is a form? We have to guess what you are talking about. There is no component by that name in Swing.
Upvotes: 1