Jan 17, 2013 09:23 PM
(This post was last modified: Jan 17, 2013 09:29 PM by Zonated.)
I will preface by saying I'm a complete noob in all programming...which will become apparent when I post my question.
How can I make this into one dialog box that reads like the following link:
https://gyazo.com/96c356f050909fbc477fa3222b17bd1f
My first thought was to use JOptionPane.showMessageDialog(null, ""); beside each row, but that just made multiple dialog boxes.
I just began on the second chapter of Introduction to Java Programming and this was one of the questions, but I took it a step further by putting it in a dialog box. :P
Would you have to put all of that "JAVA" into one set of quotation marks for it to work or is there another way?
Thanks in advance for helping me learn. :)
How can I make this into one dialog box that reads like the following link:
https://gyazo.com/96c356f050909fbc477fa3222b17bd1f
My first thought was to use JOptionPane.showMessageDialog(null, ""); beside each row, but that just made multiple dialog boxes.
Code
import javax.swing.JOptionPane;
public class test {
public static void main(String[] args) {
System.out.println(" J A V V A ");
System.out.println(" J A A V V A A");
System.out.println("J J AA V V AA");
System.out.println(" J J A A V A A");
}
}I just began on the second chapter of Introduction to Java Programming and this was one of the questions, but I took it a step further by putting it in a dialog box. :P
Would you have to put all of that "JAVA" into one set of quotation marks for it to work or is there another way?
Thanks in advance for helping me learn. :)


