/** Creates new form InformWindow */ public InformWindow(String title, String msg, String msg_button) { initComponents(); MainPanel.setBackground(new Color(255, 255, 255)); this.setTitle(title); this.Label.setText(msg); this.Button.setText(msg_button); setGUIIcon(this); this.pack(); this.setLocationRelativeTo(null); }