public CodeEditor(){
		JMenu jMenu1 = new JMenu("File");
		jMenu1.add(jmiOpen);
		jMenu1.add(jmiSave);
		jMenu1.add(jmiClear);
		jMenu1.addSeparator();
		jMenu1.add(jmiExit);
		
		JMenu jMenu2 = new JMenu("Edit");
		jMenu2.add(jmiBackground);
		jMenu2.add(jmiForeground);
		jMenu2.add(jmiCaret);
		
		JMenuBar jMenuBar1 = new JMenuBar();
		jMenuBar1.add(jMenu1);
		jMenuBar1.add(jMenu2);
		
		setJMenuBar(jMenuBar1);
		
		jmiOpen.addActionListener(new ActionListener(){
			public void actionPerformed(ActionEvent e){
				open();
			}
		});
		jmiSave.addActionListener(new ActionListener(){
			public void actionPerformed(ActionEvent e){
				save();
			}
		});
		jmiClear.addActionListener(new ActionListener(){
			public void actionPerformed(ActionEvent e){
				jta.setText(null);
			}
		});
		jmiExit.addActionListener(new ActionListener(){
			public void actionPerformed(ActionEvent e){
				System.exit(1);
			}
		});
		jmiForeground.addActionListener(new ActionListener(){
			public void actionPerformed(ActionEvent e){
				Color selectedColor =
						JColorChooser.showDialog(null, "Choose Foreground Color", jta.getForeground());
				if(selectedColor != null)
					jta.setForeground(selectedColor);
			}
		});
		jmiBackground.addActionListener(new ActionListener(){
			public void actionPerformed(ActionEvent e){
				Color selectedColor =
						JColorChooser.showDialog(null, "Choose Background Color", jta.getBackground());
				if(selectedColor != null)
					jta.setBackground(selectedColor);
			}
		});
		jmiCaret.addActionListener(new ActionListener(){
			public void actionPerformed(ActionEvent e){
				Color selectedColor =
						JColorChooser.showDialog(null, "Choose Caret Color", jta.getCaretColor());
				if(selectedColor != null)
					jta.setCaretColor(selectedColor);
			}
		});
		
		Font f = new Font("Courier", Font.PLAIN, 12);
		jta.setFont(f);
		jta.setTabSize(4);
		add(jlblStatus, BorderLayout.SOUTH);
		add(new JScrollPane(jta), BorderLayout.CENTER);
	}