Using JInternalFrame and some button
I don’t know a way to put a JButton directly on a JDesktopPane, but you can use menu items to create and select a JInternalFrame. In this example, each menu item uses an Action defined in the JInternalFrame to select the corresponding frame. class MyFrame extends JInternalFrame { private Action action; MyFrame(JDesktopPane desktop, String name, … Read more