diff --git a/src/main/java/userprofilebuilder/view/MainViewer.java b/src/main/java/userprofilebuilder/view/MainViewer.java index 4839dfb..9f426cb 100644 --- a/src/main/java/userprofilebuilder/view/MainViewer.java +++ b/src/main/java/userprofilebuilder/view/MainViewer.java @@ -56,9 +56,9 @@ public class MainViewer { public void DialogueBox(String JRtext){ - JOptionPane pane = new JOptionPane(JRtext); - JDialog dialog = pane.createDialog("Change Name to what?"); - dialog.show(); + JOptionPane pane = new JOptionPane(JRtext); // content of dialogue box + JDialog dialog = pane.createDialog("Change Name to what?"); // title of dialogue box + dialog.setVisible(true); // changed boiler plate code from .show() to .setVisible(true) because apparently IDE says it's better!! }