コード例 #1
0
  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);
  }
コード例 #2
0
  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);
  }