package starBarGraph;

import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.JTextArea;

public class StarBarMain {

	// making an instance of the class to make it easier
	// to use inner classes if you wish 
	public static void main(String[] args) {
		StarBarMain instance = new StarBarMain();
		instance.createWindow();
	}
	
	public void createWindow() {
		JFrame frame = new JFrame();
		frame.setTitle("Star Bar Graph by (your name here)!");
		final JTextArea label = new JTextArea();
		label.setEditable(false);
		frame.add(label, BorderLayout.CENTER);
		
		label.setText("1|**\n2|****\n3|\n4|***");
		
		
			
		
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.pack();
		frame.setVisible(true);
	}

}
