
import java.awt.*;


import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;

public class HexViewer extends JFrame {

	JMenuBar menuBar;
	JMenu fileMenu;
	private JTextArea ta;
	private JFileChooser jfc;

	public HexViewer() {

		setTitle("Hex Viewer");
		setSize(600, 800);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

		Container c = getContentPane();

		ta = new JTextArea();
		JScrollPane jsp = new JScrollPane(ta);

		c.add(jsp);
		buildMenu();

	}

	public void buildMenu() {
		menuBar = new JMenuBar();
		fileMenu = new JMenu("File");

		JMenuItem menuItem = new JMenuItem("Open");
		fileMenu.add(menuItem);

		menuItem = new JMenuItem("Exit");
		
		fileMenu.add(menuItem);

		menuBar.add(fileMenu);
		setJMenuBar(menuBar);
		// refresh();
	}

	public static void main(String[] args) {
		HexViewer hexView = new HexViewer();
		hexView.setVisible(true);
	}

	
}
