Professional Documents
Culture Documents
Government Polytechnic, Jalna Computer Engineering Department
Government Polytechnic, Jalna Computer Engineering Department
ANNEXURE-II
Evaluation Sheet for the Micro Project (*****)
--------------------------------------------------------------------------------------
Academic Year: 2021-2022 Course: CO Semester: fifth
Name of faculty: Mrs.P.Mule Course Code: 22447 Subject: AJP
--------------------------------------------------------------------------------------------
1
B.
C.
Comments /Suggestion about Term work /leadership /Interpersonal Communication (if any)
Roll Enrollment Name Of Seat Marks Out of 6 for Marks Out Total
No No Students Number performance in of 6 for Out
group activity performance Of 10
(D5.Col 8) in group
activity D5.
Col
2
Government Polytechnic, Jalna
Computer Engineering Department
Micro project on
“ A Text Editor”
Subject: AJP ( 22447)
Group Members
Sr.No Roll No Erollment No Seat No Name Of the Student
1. 11 1901200181 -- Vishwas Sheshrao
Landge
Guide
H.O.D
Mrs.P.Mule
Mr.P.B.Agrawal
3
Undertaking
Date:
Place:
4
CERTIFICATE
Has been carried out under my supervision and that this work has not been submitted elsewhere
for diploma.
Mrs.P.Mule
5
A Text Editor For Java Programming is
A computer program that lets a user enter, change, store, and usually print text
(characters and numbers, each encoded by the computer and its input and output
Menu
3. Close
*/
/**
* @author jude
*/
Import java.awt.*;
Import javax.swing.*;
Import java.io.*;
Import java.awt.event.*;
Import javax.swing.plaf.metal.*;
Import javax.swing.text.*;
// Text component
JTextArea t;
// Frame
JFrame f;
// Constructor
Editor()
// Create a frame
F = new JFrame(“editor”);
Try {
MetalLookAndFeel.setCurrentTheme(new OceanTheme());
Catch (Exception e) {
// Text component
T = new JTextArea();
// Create a menubar
Mi1.addActionListener(this);
Mi2.addActionListener(this);
Mi3.addActionListener(this);
Mi9.addActionListener(this);
M1.add(mi1);
M1.add(mi2);
M1.add(mi3);
M1.add(mi9);
Mi4.addActionListener(this);
Mi5.addActionListener(this);
Mi6.addActionListener(this);
M2.add(mi4);
M2.add(mi5);
M2.add(mi6);
mc.addActionListener(this);
mb.add(m1);
mb.add(m2);
mb.add(mc);
f.setJMenuBar(mb);
f.add(t);
f.setSize(500, 500);
f.show();
// If a button is pressed
String s = e.getActionCommand();
If (s.equals(“cut”)) {
t.cut();
Else if (s.equals(“copy”)) {
t.copy();
Else if (s.equals(“paste”)) {
t.paste();
Else if (s.equals(“Save”)) {
Int r = j.showSaveDialog(null);
If (r == JFileChooser.APPROVE_OPTION) {
Try {
// Write
w.write(t.getText());
w.flush();
w.close();
JOptionPane.showMessageDialog(f, evt.getMessage());
Else
Else if (s.equals(“Print”)) {
Try {
t.print();
}
JOptionPane.showMessageDialog(f, evt.getMessage());
Else if (s.equals(“Open”)) {
Int r = j.showOpenDialog(null);
If (r == JFileChooser.APPROVE_OPTION) {
Try {
// String
// File reader
// Buffered reader
// Initialize sl
Sl = br.readLine();
// Take the input from the file
Sl = sl + “\n” + s1;
t.setText(sl);
JOptionPane.showMessageDialog(f, evt.getMessage());
Else
Else if (s.equals(“New”)) {
t.setText(“”);
Else if (s.equals(“close”)) {
f.setVisible(false);
// Main class
Public static void main(String args[])
Project Output ( 1 )
Project Output ( 2 )