Jump to content

Launch swing programs from inside another swing program

Been working on a little of my own project over the past few weeks when i get some spare time i actually feel like coding. Teaching myself the swing interface so I can make a little desktop tool kit to help me while programming or math work, you know just a bunch of simple little converters or calculators and such. I've made good progress making the individual programs that launch into their respective containers fine, but now I want to make a master container that i can use that is just a bunch of buttons or a list to scroll to what tool i want to use. Catch my drift?

 

Any help would be awesome!

Link to post
Share on other sites

public void actionPerformed(ActionEvent e){     JFrame FrameToOpen = new JFrame();     FrameToOpen.pack();     FrameToOpen.setVisible();  }
If you need to, you can import another packages and mind where each frame is coded. If I understood correctly, you need to make a new Frame with buttons for each of the other frames. Hope this helps!

EDIT: Forgot - "JFrame" is the name of your frame actually.

Edited by LucasBoy
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×