i'm working on a project but now i'm stuck, i'm trying to make i where if i press the options button another Jframe will pop out, i want this other Jframe to contain options/buttons/etc is there anyway to do this, and would like to only use JFrames for this project. can someone help me/get me in the right direction on how to make this, i have no idea how to add muti Jframes, I've tryed odds and ends and nothing worked.
private JButton sendButton;
sendButton = new JButton(" Send "); add( sendButton ); sendButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent event) {
Main JFrame-
import javax.swing.JFrame; public class MessageBoxCreator { public static void main(String[] args){ MainClass creationFrame = new MainClass(); creationFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); creationFrame.setSize(625,415); creationFrame.setVisible(true); creationFrame.setResizable(false); } }