import javax.swing.*;
import javax.swing.JFrame;
public class Ejer1 {
public static void main(String [] args){
JFrame frame = new JFrame (Box);
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);
System.out.println("*********");
System.out.printf("%s\n%s\n%s\n%s\n%s\n", "* *","* *","* *",
"* *", "* *","*", "* *","* *","* *","* *","* *","* *");
System.out.println("*********");
}
}
rayden150 -1 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.