first i tried with system.out..
then i tried this:
import javax.swing.*;
import java.awt.*;
public class Ejer1 {
public static void main(String [] args){
JTextArea graphs = new JTextArea();
String [] graph1 = {"*********"};
String [] graph2 = {"%s\n%s\n%s\n%s\n%s\n", "* *","* *","* *",
"* *", "* *","*", "* *","* *","* *","* *","* *","* *"};
String [] graph3 = {"*********"};
JFrame frame = new JFrame();
frame.setVisible(true);
frame.setSize(300,300);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JLabel label = new JLabel();
JPanel panel = new JPanel();
frame.add(panel);
frame.add(label);
frame.add(graphs);
}
}
Doesnt work either.. can anyone point to me how would i display those stars that form a square i would be so grateful please and thanks