• Post Reply Bookmark Topic Watch Topic
  • New Topic

How do I Get Java To Put My Entire Magic Square Into A Message Dialog  RSS feed

 
Edward Richtofen
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I am trying to create a program to check if a user inputted value is a magic square. As of now my code only makes it so one number gets put into the output window. How can I make it so more then one value is shown in the output window at one time? That way I can have my entire square in one JOptionPane. Here is the code for my driver class



and here is the code connected to my driver class

 
Junilu Lacar
Sheriff
Posts: 11168
160
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe you should reconsider your approach. You don't have much control over how JOptionPane displays the prompt text. Refer to the Official tutorial to see examples of how you can customize the prompt: http://docs.oracle.com/javase/tutorial/uiswing/components/dialog.html#features
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!