/** * Prepare the panel to receive a new JPanel. * * @param panel new jpanel * @param title object name */ public static void setPanel(JPanel panel, String title) { // Resets the panel. pReceive.removeAll(); pReceive.repaint(); // Resets the Show/Hide button. ShowHide.setStatus(false); // Insert panel pReceive.add(panel, ""); try { instance.setName(MessagesGED.property_list + ": " + title); } catch (NullPointerException e) { instance.setTitle(MessagesGED.property_list + ": " + title); } }