Open new panel with button clicked.
Posted
by bat
on Stack Overflow
See other posts from Stack Overflow
or by bat
Published on 2010-06-05T08:23:07Z
Indexed on
2010/06/05
9:12 UTC
Read the original article
Hit count: 115
Java Swing GUI:
I am using ActionListener to preform the action when a button is clicked. What i want to do is when a button is clicked, open a new panel, but load/get the new panel from a different file.
This is what i have so far but i rather just link to another file. THANKS! =]
public void actionPerformed(java.awt.event.ActionEvent e) {
//something like this...
loadFile(newPlane.java);
}
© Stack Overflow or respective owner