private static void ReturnFrame(JPanel PanelComponent, RootPeoples rootPeoples) { rootPeoples = new RootPeoples(PanelComponent); ViewPanel.EmptyPanel(PanelComponent); ViewPanel.AddInternalFrame(PanelComponent, rootPeoples); int x, y; x = 10; y = 10; rootPeoples.setLocation(x, y); int height, width; height = PanelComponent.getHeight() - (y * 2); width = PanelComponent.getWidth() - (x * 2); rootPeoples.setSize(width, height); }
public static void CloseFrame( JPanel PanelComponent, RootPeoples rootPeoples, RootPeopleEdit rootPeopleEdit) { ViewPanel.AddInternalFrame(PanelComponent, rootPeoples); int x, y; x = 10; y = 10; rootPeoples.setLocation(x, y); int height, width; height = PanelComponent.getHeight() - (y * 2); width = PanelComponent.getWidth() - (x * 2); rootPeoples.setSize(width, height); rootPeopleEdit.setVisible(false); }