From d13f8db9791d90181887a2794d4620774ded2d28 Mon Sep 17 00:00:00 2001 From: mudabbir-ahmad Date: Tue, 4 Feb 2025 18:05:33 +0000 Subject: [PATCH] =?UTF-8?q?W2R2=20=E2=80=93Bring=20up=20a=20Dialog=20Box?= =?UTF-8?q?=20--=20changed=20some=20minor=20code.=20mostly=20added=20comme?= =?UTF-8?q?nts=20for=20myself=20so=20i=20can=20remember=20what=20im=20codi?= =?UTF-8?q?ng=20...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/userprofilebuilder/view/MainViewer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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!! }