"\n" newline and %n not work to begin newline
I was putting simple loading animation to my previous code but I can't
fine a way to begin new line when its show the result.
JFrame frame = new JFrame("Max");
ImageIcon loading = new ImageIcon("ajax-loader.gif");
frame.add(new JLabel("Processing to Result \n Result of Maximum is :
"+max, loading,
JLabel.CENTER));
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(400, 300);
frame.setVisible(true);![enter image description here][1]
I also try to use newline and %n but both is not work...please help.
No comments:
Post a Comment