• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

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

 
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

 
Sheriff
Posts: 13510
223
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!