W2R2 –Bring up a Dialog Box -- changed some minor code. mostly added comments for myself so i can remember what im coding ...

This commit is contained in:
bobbert committed 2025-02-04 18:05:33 +00:00
1 parent 25cb72aafc
commit d13f8db979
1 file changed
+3 -3
@@ -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!!
}