0% found this document useful (0 votes)
25 views51 pages

Java Text Editor Project Report

The document is a project report for developing a text editor. It includes an introduction describing what a text editor is, the problem definition which is to develop a simple text editor, and the features and system requirements for the proposed text editor system. It then discusses the implementation including providing code snippets for color selection and the main text editor source code.

Uploaded by

Chaitanya Sai
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views51 pages

Java Text Editor Project Report

The document is a project report for developing a text editor. It includes an introduction describing what a text editor is, the problem definition which is to develop a simple text editor, and the features and system requirements for the proposed text editor system. It then discusses the implementation including providing code snippets for color selection and the main text editor source code.

Uploaded by

Chaitanya Sai
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

“TEXT EDITOR”

PROJECT REPORT
Submitted for the course: Programming in Java(SWE1007)

By
GROUP MEMBERS REGISTRATION NUMBER
[Link] Sai Akhil 15MIS0080
[Link] 15MIS0075
Sureka R 15MIS0238
SLOT: F1+TF1

Name of faculty: THANAPAL P

(School of Information Technology &Engineering)

NOVEMBER, 2016

1
CERTIFICATE
This is to certify that the project work entitled “TEXT EDITOR”
that is being submitted by
“R. Ram Sai Akhil,[Link],Sureka.R” for Programming in
Java(SWE1007) is a record of bonafied work done under my
supervision. The contents of the project work, infull or inparts,
have neither been taken from any other sources nor have been
submitted for any other CAL course.

Place:Vellore

Date:

Signature of Students: [Link] Sai Akhil


[Link]

Sureka R

Signature of Faculty: THANAPAL P

2
ACKNOWLEDGEMENT
I would like to express our special thanks of gratitude to my
respected teacher THANAPAL P and respected schools dean who
gave us the golden opportunity to do this wonderful project on
the topic Text editor in VIT University which also helped me in
doing a lot of Research and we came to know about so many new
things We are really thankful to sir.

Secondly we would also like to thank internet and friends who


helped us a lot in finishing this project within the limited time.
We are making this project not only for marks but to also

increase our knowledge. THANKS AGAIN TO ALL WHO

HELPED US.

STUDENT NAME REGISTRATION NO. SIGNATURE


1)R. Rama Sai Akhil 15MIS0080
2)S. Aisvarya 15MIS0075
3)Sureka R 15MIS0238

3
Contents:
[Link]

2. PROBLEM DEFINITION
2.1. FEATURES OF THE PROPOSED SYSTEM

3. SYSTEM REQUIREMENTS

4. IMPLEMENTATION

[Link]

7. REFERENCES

4
ABSTRACT

Abstract. Text Editor basically used to edit texts of different types


.Text editor widely has applications in many fields Like while doing java
programming in order to save with different extensions in different aspects. We
also have options .To change the color and format of the text which we want to
edit.

Introduction:
1) A text
editor is a type of program used for editing plain text files. Such
programs are sometimes known as "notepad" software, following
the Microsoft Notepad
2) Text
editors are provided with operating systems and software
development packages, and can be used to change configuration files,
documentation files and programming language source code.

2. PROBLEM DEFENITION
1. This project aims to develop a simple text editor for a system. This software
can be accessed by
By any system that is reliable.

2.1 Features of the proposed system

 Find and replace


 Cut, copy, and paste .
 Text formatting
 Undo and redo .
 Data transformation
 Syntax highlighting – contextually highlights source code, markup
languages, config files and other text that appears in an organized or
predictable format. Editors generally allow users to customize the colors or
styles used for each language element. Some text editors also allow users to
5
install and use themes to change the look and feel of the editor's entire user
interface.
 Extensibility - a text editor intended for use by programmers must provide
some plugin mechanism, or be scriptable, so a programmer can customize the
editor with features needed to manage individual software projects,
customize functionality or key bindings for specific programming
languages or version control systems, or conform to specific coding styles.

3. SYSTEM REQUIREMENTS

The following are the system requirements for online feedback collection
systems

Simple processor with minimum of 1GB ram.

[Link]

Main
Text Editor
Source
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package [Link];

6
import [Link];
import [Link];
import [Link].*;

public class TEXTEDITOR {

/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
try{
GraphicsEnvironment ge=
[Link]();
[Link]([Link](Font.TRUETYPE_FONT,new
File("[Link]")));
}
catch(Exception e){

}
FIRST f1=new FIRST();
[Link](true);
}

1)COLOR
Source
package [Link];

7
public class COLOR extends [Link] {

public COLOR() {
initComponents();
}

public int mycolor(){


int z=0;
if([Link]()){
z=1;
}
else if([Link]()){
z=2;
}
else if([Link]()){
z=3;
}
else if([Link]()){
z=4;
}
else if([Link]()){
z=5;
}
else if([Link]()){
z=6;
}
else if([Link]()){
z=7;
}
else if([Link]()){
z=8;
}
8
else if([Link]()){
z=9;
}
else if([Link]()){
z=10;
}
else if([Link]()){
z=11;
}
else if([Link]()){
z=12;
}
else if([Link]()){
z=13;
}
return z;
}

@SuppressWarnings("unchecked")
private void initComponents() {

buttonGroup1 = new [Link]();


jLabel1 = new [Link]();
jRadioButton1 = new [Link]();
jRadioButton2 = new [Link]();
jRadioButton3 = new [Link]();
jRadioButton4 = new [Link]();
jRadioButton5 = new [Link]();
jRadioButton6 = new [Link]();
jRadioButton7 = new [Link]();
jRadioButton8 = new [Link]();
jRadioButton9 = new [Link]();
jRadioButton10 = new [Link]();
9
jRadioButton11 = new [Link]();
jRadioButton12 = new [Link]();
jRadioButton13 = new [Link]();
jButton1 = new [Link]();
jButton2 = new [Link]();

setDefaultCloseOperation([Link].EXIT_ON_CLOSE);

[Link](new [Link]("Tahoma", 1, 24)); // NOI18N


[Link]("Font Colour");

[Link](jRadioButton1);
[Link](new [Link]("Tahoma", 0, 14)); // NOI18N
[Link]("Black");

[Link](jRadioButton2);
[Link](new [Link]("Tahoma", 0, 14)); // NOI18N
[Link]("White");

[Link](jRadioButton3);
[Link](new [Link]("Tahoma", 0, 14)); // NOI18N
[Link]("Red");

[Link](jRadioButton4);
[Link](new [Link]("Tahoma", 0, 14)); // NOI18N
[Link]("Green");

[Link](jRadioButton5);
[Link](new [Link]("Tahoma", 0, 14)); // NOI18N
[Link]("Blue");

[Link](jRadioButton6);
1
0
[Link](new [Link]("Tahoma", 0, 14)); // NOI18N
[Link]("Yellow");

[Link](jRadioButton7);
[Link](new [Link]("Tahoma", 0, 14)); // NOI18N
[Link]("Orange");

[Link](jRadioButton8);
[Link](new [Link]("Tahoma", 0, 14)); // NOI18N
[Link]("Pink");

[Link](jRadioButton9);
[Link](new [Link]("Tahoma", 0, 14)); // NOI18N
[Link]("Magenta");

[Link](jRadioButton10);
[Link](new [Link]("Tahoma", 0, 14)); // NOI18N
[Link]("Cyan");

[Link](jRadioButton11);
[Link](new [Link]("Tahoma", 0, 14)); // NOI18N
[Link]("Gray");

[Link](jRadioButton12);
[Link](new [Link]("Tahoma", 0, 14)); // NOI18N
[Link]("Light Gray");

[Link](jRadioButton13);
[Link](new [Link]("Tahoma", 0, 14)); // NOI18N
[Link]("Dark Gray");

[Link](new [Link]("Tahoma", 0, 18)); // NOI18N


[Link]("Change");
1
1
[Link](new [Link]() {
public void actionPerformed([Link] evt) {
jButton1ActionPerformed(evt);
}
});

[Link](new [Link]("Tahoma", 0, 18)); // NOI18N


[Link]("Exit");

[Link] layout = new


[Link](getContentPane());
getContentPane().setLayout(layout);
[Link](

[Link]([Link])
.addGroup([Link]()
.addGap(33, 33, 33)

.addGroup([Link]([Link]
ADING)
.addComponent(jRadioButton1)
.addComponent(jRadioButton5)
.addComponent(jRadioButton4)
.addComponent(jRadioButton3)
.addComponent(jRadioButton2)
.addComponent(jRadioButton11)
.addComponent(jRadioButton13)
.addComponent(jButton1,
[Link].PREFERRED_SIZE, 118,
[Link].PREFERRED_SIZE))

.addPreferredGap([Link], 85,
Short.MAX_VALUE)
1
2
.addGroup([Link]([Link]
ADING, false)
.addComponent(jRadioButton6)
.addComponent(jRadioButton7)
.addComponent(jRadioButton8)
.addComponent(jRadioButton9)
.addComponent(jRadioButton10)
.addComponent(jRadioButton12,
[Link].DEFAULT_SIZE,
[Link].DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButton2,
[Link],
[Link].DEFAULT_SIZE,
[Link].DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(75, 75, 75))
.addGroup([Link]()
.addGap(121, 121, 121)
.addComponent(jLabel1)
.addGap(0, 0, Short.MAX_VALUE))
);
[Link](

[Link]([Link])
.addGroup([Link]()
.addGap(19, 19, 19)
.addComponent(jLabel1)
.addGap(18, 18, 18)

.addGroup([Link]([Link]
SELINE)
.addComponent(jRadioButton1)
.addComponent(jRadioButton6))
1
3
.addGap(18, 18, 18)

.addGroup([Link]([Link]
SELINE)
.addComponent(jRadioButton2)
.addComponent(jRadioButton7))
.addGap(18, 18, 18)

.addGroup([Link]([Link]
SELINE)
.addComponent(jRadioButton3)
.addComponent(jRadioButton8))
.addGap(18, 18, 18)

.addGroup([Link]([Link]
SELINE)
.addComponent(jRadioButton4)
.addComponent(jRadioButton9))
.addGap(18, 18, 18)

.addGroup([Link]([Link]
SELINE)
.addComponent(jRadioButton5)
.addComponent(jRadioButton10))
.addGap(18, 18, 18)

.addGroup([Link]([Link]
SELINE)
.addComponent(jRadioButton11)
.addComponent(jRadioButton12))
.addGap(18, 18, 18)
.addComponent(jRadioButton13)
.addGap(18, 18, 18)
1
4
.addGroup([Link]([Link]
ADING, false)
.addComponent(jButton2, [Link].DEFAULT_SIZE,
[Link].DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButton1, [Link].DEFAULT_SIZE,
37, Short.MAX_VALUE))
.addContainerGap(14, Short.MAX_VALUE))
);

pack();
}

private void jButton1ActionPerformed([Link] evt) {


}

public static void main(String args[]) {


try {
for ([Link] info :
[Link]()) {
if ("Nimbus".equals([Link]())) {
[Link]([Link]());
break;
}
}
} catch (ClassNotFoundException ex) {

[Link]([Link]()).log([Link]
.[Link], null, ex);
} catch (InstantiationException ex) {

[Link]([Link]()).log([Link]
.[Link], null, ex);
1
5
} catch (IllegalAccessException ex) {

[Link]([Link]()).log([Link]
.[Link], null, ex);
} catch ([Link] ex) {

[Link]([Link]()).log([Link]
.[Link], null, ex);
}
[Link](new Runnable() {
public void run() {
new COLOR().setVisible(true);
}
});
}

private [Link] buttonGroup1;


public [Link] jButton1;
public [Link] jButton2;
private [Link] jLabel1;
private [Link] jRadioButton1;
private [Link] jRadioButton10;
private [Link] jRadioButton11;
private [Link] jRadioButton12;
private [Link] jRadioButton13;
private [Link] jRadioButton2;
private [Link] jRadioButton3;
private [Link] jRadioButton4;
private [Link] jRadioButton5;
private [Link] jRadioButton6;
private [Link] jRadioButton7;
private [Link] jRadioButton8;
private [Link] jRadioButton9;
1
6
}
Design

2)Find

Source
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package [Link];

/**
*
*/
public class FIND extends [Link] {

/**
1
7
* Creates new form FIND
*/
public FIND() {
initComponents();
}

/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents()
{

jLabel1 = new [Link]();


jLabel2 = new [Link]();
jTextField1 = new [Link]();
jTextField2 = new [Link]();
jButton1 = new [Link]();
jButton2 = new [Link]();
jButton3 = new [Link]();

setDefaultCloseOperation([Link].EXIT_ON_CLOSE);

[Link](new [Link]("Tahoma", 0, 14)); // NOI18N


[Link]("Find :");

[Link](new [Link]("Tahoma", 0, 14)); // NOI18N


[Link]("Replace with :");

[Link](new [Link]("Tahoma", 0, 12)); // NOI18N


1
8
[Link](new [Link]()
{
public void actionPerformed([Link] evt)
{
jTextField1ActionPerformed(evt);
}
});

[Link](new [Link]("Tahoma", 0, 12)); // NOI18N

[Link]("Find Next");
[Link](new [Link]()
{
public void actionPerformed([Link] evt)
{
jButton1ActionPerformed(evt);
}
});

[Link]("Replace");

[Link]("Exit");

[Link] layout = new


[Link](getContentPane());
getContentPane().setLayout(layout);
[Link](
[Link]([Link])
.addGroup([Link]()

.addGroup([Link]([Link]
ING)
.addGroup([Link],
1
9
[Link]()
.addGap(47, 47, 47)

.addGroup([Link]([Link]
ING)
.addComponent(jLabel2)
.addComponent(jLabel1))

.addPreferredGap([Link],
[Link].DEFAULT_SIZE, Short.MAX_VALUE)

.addGroup([Link]([Link]
ING)
.addComponent(jButton3,
[Link].PREFERRED_SIZE, 79,
[Link].PREFERRED_SIZE)

.addGroup([Link]([Link]
ING)
.addComponent(jTextField2,
[Link],
[Link].PREFERRED_SIZE, 161,
[Link].PREFERRED_SIZE)
.addComponent(jTextField1,
[Link],
[Link].PREFERRED_SIZE, 161,
[Link].PREFERRED_SIZE))))
.addGroup([Link],
[Link]()
.addContainerGap([Link].DEFAULT_SIZE,
Short.MAX_VALUE)

.addGroup([Link]([Link]
2
0
ING)
.addComponent(jButton1,
[Link],
[Link].PREFERRED_SIZE, 100,
[Link].PREFERRED_SIZE)
.addComponent(jButton2,
[Link],
[Link].PREFERRED_SIZE, 100,
[Link].PREFERRED_SIZE))))
.addContainerGap())
);
[Link](
[Link]([Link])
.addGroup([Link]()
.addGap(41, 41, 41)

.addGroup([Link]([Link]
LINE)
.addComponent(jTextField1,
[Link].PREFERRED_SIZE,
[Link].DEFAULT_SIZE,
[Link].PREFERRED_SIZE)
.addComponent(jLabel1))

.addPreferredGap([Link])
.addComponent(jButton1)
.addGap(24, 24, 24)

.addGroup([Link]([Link]
LINE)
.addComponent(jTextField2,
[Link].PREFERRED_SIZE,
[Link].DEFAULT_SIZE,
2
1
[Link].PREFERRED_SIZE)
.addComponent(jLabel2))

.addPreferredGap([Link])
.addComponent(jButton2)

.addPreferredGap([Link], 38,
Short.MAX_VALUE)
.addComponent(jButton3)
.addGap(19, 19, 19))
);

pack();
}// </editor-fold>

private void jButton1ActionPerformed([Link] evt)


{
// TODO add your handling code here:

private void jTextField1ActionPerformed([Link] evt)


{
// TODO add your handling code here:
}

/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code
(optional) ">
2
2
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default
look and feel.
* For details see
[Link]
*/
try {
for ([Link] info :
[Link]()) {
if ("Nimbus".equals([Link]())) {
[Link]([Link]());
break;
}
}
} catch (ClassNotFoundException ex) {

[Link]([Link]()).log([Link]
[Link], null, ex);
} catch (InstantiationException ex) {

[Link]([Link]()).log([Link]
[Link], null, ex);
} catch (IllegalAccessException ex) {

[Link]([Link]()).log([Link]
[Link], null, ex);
} catch ([Link] ex) {

[Link]([Link]()).log([Link]
[Link], null, ex);
}
//</editor-fold>

/* Create and display the form */


2
3
[Link](new Runnable() {
public void run() {
new FIND().setVisible(true);
}
});
}

// Variables declaration - do not modify


public [Link] jButton1;
public [Link] jButton2;
public [Link] jButton3;
private [Link] jLabel1;
private [Link] jLabel2;
public [Link] jTextField1;
public [Link] jTextField2;
// End of variables declaration
}

Design

3)Font
Source
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
2
4
* and open the template in the editor.
*/
package [Link];

import [Link].*;
import [Link].*;
import [Link].*;

public class FONT extends [Link] {

/**
* Creates new form FONT
*/
public Font selectedFont;
String fontString[] =
[Link]().getAvailableFontFamilyNa
mes();
String fontSizeString[] =
{"10","12","14","16","18","20","22","24","28","40","60","80"};
String fontStyleString[] = {"Normal","Bold","Italic","Bold Italic"};

public FONT() {
super("Font Selector");
initComponents();
}

/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
2
5
private void initComponents() {

jScrollPane1 = new [Link]();


jList1 = new [Link]();
jLabel1 = new [Link]();
jLabel2 = new [Link]();
jLabel3 = new [Link]();
jComboBox1 = new [Link]();
jComboBox2 = new [Link]();
jComboBox3 = new [Link]();
jButton1 = new [Link]();
jButton2 = new [Link]();
jLabel4 = new [Link]();
jLabel5 = new [Link]();

[Link](new [Link]() {
String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
public int getSize() { return [Link]; }
public Object getElementAt(int i) { return strings[i]; }
});
[Link](jList1);

setDefaultCloseOperation([Link].EXIT_ON_CLOSE);

[Link](new [Link]("Tahoma", 0, 14)); // NOI18N


[Link]("Select Font");

[Link](new [Link]("Tahoma", 0, 14)); // NOI18N


[Link]("Select Size");

[Link](new [Link]("Tahoma", 0, 14)); // NOI18N


[Link]("Select Style");

2
6
[Link](new [Link]("Tahoma", 0, 14)); // NOI18N
[Link](new
[Link](fontString));
[Link](new [Link]() {
public void actionPerformed([Link] evt) {
jComboBox1ActionPerformed(evt);
}
});

[Link](new [Link]("Tahoma", 0, 14)); // NOI18N


[Link](new
[Link](fontSizeString));
[Link](new [Link]() {
public void actionPerformed([Link] evt) {
jComboBox2ActionPerformed(evt);
}
});

[Link](new [Link]("Tahoma", 0, 14)); // NOI18N


[Link](new
[Link](fontStyleString));
[Link](new [Link]() {
public void actionPerformed([Link] evt) {
jComboBox3ActionPerformed(evt);
}
});

[Link](new [Link]("Tahoma", 0, 14)); // NOI18N


[Link]("OK");
[Link](new [Link]() {
public void actionPerformed([Link] evt) {
jButton1ActionPerformed(evt);
}
2
7
});

[Link](new [Link]("Tahoma", 0, 14)); // NOI18N


[Link]("Cancel");
[Link](new [Link]() {
public void actionPerformed([Link] evt) {
jButton2ActionPerformed(evt);
}
});

[Link](new [Link]("Tahoma", 0, 14)); // NOI18N


[Link]("Preview:");

[Link](new [Link]("Tahoma", 0, 14)); // NOI18N


[Link](" AaBbCcDd");
[Link]([Link](new
[Link](0, 0, 0)));

[Link] layout = new


[Link](getContentPane());
getContentPane().setLayout(layout);
[Link](
[Link]([Link])
.addGroup([Link]()
.addGap(27, 27, 27)

.addGroup([Link]([Link]
ING, false)
.addComponent(jLabel5, [Link].DEFAULT_SIZE,
[Link].DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup([Link]()

.addGroup([Link]([Link]
2
8
ING)

.addGroup([Link]([Link]
ING, false)
.addComponent(jLabel3,
[Link].DEFAULT_SIZE,
[Link].DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel4)
.addComponent(jButton1,
[Link].DEFAULT_SIZE,
[Link].DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel2,
[Link].DEFAULT_SIZE,
[Link].DEFAULT_SIZE, Short.MAX_VALUE))
.addComponent(jLabel1,
[Link].PREFERRED_SIZE, 83,
[Link].PREFERRED_SIZE))
.addGap(68, 68, 68)

.addGroup([Link]([Link]
ING, false)
.addComponent(jButton2,
[Link].DEFAULT_SIZE, 112, Short.MAX_VALUE)
.addComponent(jComboBox3, 0,
[Link].DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jComboBox2, 0,
[Link].DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jComboBox1, 0,
[Link].DEFAULT_SIZE, Short.MAX_VALUE))))
.addContainerGap(51, Short.MAX_VALUE))
);
[Link](
[Link]([Link])
2
9
.addGroup([Link]()
.addGap(37, 37, 37)

.addGroup([Link]([Link]
LINE)
.addComponent(jLabel1)
.addComponent(jComboBox1,
[Link].PREFERRED_SIZE,
[Link].DEFAULT_SIZE,
[Link].PREFERRED_SIZE))
.addGap(25, 25, 25)

.addGroup([Link]([Link]
LINE)
.addComponent(jLabel2)
.addComponent(jComboBox2,
[Link].PREFERRED_SIZE,
[Link].DEFAULT_SIZE,
[Link].PREFERRED_SIZE))
.addGap(28, 28, 28)

.addGroup([Link]([Link]
LINE)
.addComponent(jLabel3)
.addComponent(jComboBox3,
[Link].PREFERRED_SIZE,
[Link].DEFAULT_SIZE,
[Link].PREFERRED_SIZE))
.addGap(31, 31, 31)

.addGroup([Link]([Link]
LINE)
.addComponent(jButton1)
3
0
.addComponent(jButton2))
.addGap(27, 27, 27)
.addComponent(jLabel4)
.addGap(29, 29, 29)
.addComponent(jLabel5, [Link].PREFERRED_SIZE, 85,
[Link].PREFERRED_SIZE)
.addContainerGap(24, Short.MAX_VALUE))
);

pack();
}// </editor-fold>

private void jComboBox1ActionPerformed([Link] evt) {


// TODO add your handling code here:
[Link](new
Font([Link]([Link]()),[Link]
ex(),[Link]([Link]([Link]()))));
}

private void jComboBox2ActionPerformed([Link] evt) {


// TODO add your handling code here:
[Link](new
Font([Link]([Link]()),[Link]
ex(),[Link]([Link]([Link]()))));
}

private void jComboBox3ActionPerformed([Link] evt) {


// TODO add your handling code here:
[Link](new
Font([Link]([Link]()),[Link]
ex(),[Link]([Link]([Link]()))));
}

3
1
private void jButton2ActionPerformed([Link] evt) {
// TODO add your handling code here:
}

public Font returnfont(){


String fontSS = [Link]([Link]());
int fontSZ =
[Link]([Link]([Link]()));
int fontST = [Link]();

selectedFont = new Font(fontSS,fontST,fontSZ);


return selectedFont;
}
private void jButton1ActionPerformed([Link] evt) {
// TODO add your handling code here:

/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code
(optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default
look and feel.
* For details see
[Link]
3
2
*/
try {
for ([Link] info :
[Link]()) {
if ("Nimbus".equals([Link]())) {
[Link]([Link]());
break;
}
}
} catch (ClassNotFoundException ex) {

[Link]([Link]()).log([Link]
[Link], null, ex);
} catch (InstantiationException ex) {

[Link]([Link]()).log([Link]
[Link], null, ex);
} catch (IllegalAccessException ex) {

[Link]([Link]()).log([Link]
[Link], null, ex);
} catch ([Link] ex) {

[Link]([Link]()).log([Link]
[Link], null, ex);
}
//</editor-fold>

/* Create and display the form */


[Link](new Runnable() {
public void run() {
new FONT().setVisible(true);
}
3
3
});
}

// Variables declaration - do not modify


public [Link] jButton1;
public [Link] jButton2;
private [Link] jComboBox1;
private [Link] jComboBox2;
private [Link] jComboBox3;
private [Link] jLabel1;
private [Link] jLabel2;
private [Link] jLabel3;
private [Link] jLabel4;
private [Link] jLabel5;
private [Link] jList1;
private [Link] jScrollPane1;
// End of variables declaration
}

Design

3
4
4)First
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package [Link];

import [Link].*;
import [Link].*;
import [Link];
import [Link];
import [Link].*;
import [Link].*;
import [Link].*;
import [Link].*;
import [Link].*;
import [Link].*;
import [Link].*;
import [Link].*;
import [Link];

public class FIRST extends [Link] {

boolean fileOpened = false;


String file = null,
fileN;

FONT f1=new FONT();


FIND f2=new FIND();
3
5
String findString,sbufer;
int ind;
public JPopupMenu pop = new JPopupMenu();

UndoManager undoMgr = new UndoManager();


UndoAction undoAction = new UndoAction();
RedoAction redoAction = new RedoAction();
public static JLabel createLabel(String text) {

return createLabel(text, [Link]("[Link]"));

public static JLabel createLabel(String text, Color color) {

JLabel label = new JLabel(text);


[Link](color);

return label;

}
public FIRST() {
super("Text Editor");
initComponents();
customInit();

}
public void customInit() {
[Link]().addUndoableEditListener(undoMgr);
MouseListener popupListener = new PopupListener();
[Link](popupListener);
JMenuItem jMenuItema=new JMenuItem("Cut");
3
6
JMenuItem jMenuItemb=new JMenuItem("Copy");
JMenuItem jMenuItemc=new JMenuItem("Paste");
JMenuItem jMenuItemd=new JMenuItem("SelectAll");
[Link](undoAction);
[Link](redoAction);
[Link]();
[Link](jMenuItema);
[Link](jMenuItemb);
[Link](jMenuItemc);
[Link](jMenuItemd);
[Link](new [Link]() {
public void actionPerformed([Link] evt) {
jMenuItem9ActionPerformed(evt);
}
});
[Link](new [Link]() {
public void actionPerformed([Link] evt) {
jMenuItem10ActionPerformed(evt);
}
});
[Link](new [Link]() {
public void actionPerformed([Link] evt) {
jMenuItem11ActionPerformed(evt);
}
});
[Link](new [Link]() {
public void actionPerformed([Link] evt) {
jMenuItem17ActionPerformed(evt);
}
});
}
Design

3
7
5)Goto
Source
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package [Link];

public class GOTO extends [Link] {

/**
* Creates new form GOTO
*/
public GOTO() {
initComponents();
}
3
8
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {

jLabel1 = new [Link]();


jTextField1 = new [Link]();
jButton1 = new [Link]();

setDefaultCloseOperation([Link].EXIT_ON_CLOSE);

[Link](new [Link]("Tahoma", 0, 14)); // NOI18N


[Link]("Go to line : ");

[Link](new [Link]("Tahoma", 0, 12)); // NOI18N


[Link](new [Link]() {
public void actionPerformed([Link] evt) {
jTextField1ActionPerformed(evt);
}
});

[Link](new [Link]("Tahoma", 0, 14)); // NOI18N


[Link]("Go To");
[Link](new [Link]() {
public void actionPerformed([Link] evt) {
jButton1ActionPerformed(evt);
}
});
3
9
[Link] layout = new
[Link](getContentPane());
getContentPane().setLayout(layout);
[Link](
[Link]([Link])
.addGroup([Link],
[Link]()

.addGroup([Link]([Link]
LING)
.addGroup([Link]()
.addContainerGap([Link].DEFAULT_SIZE,
Short.MAX_VALUE)
.addComponent(jButton1))
.addGroup([Link]()
.addGap(30, 30, 30)
.addComponent(jLabel1)

.addPreferredGap([Link], 67,
Short.MAX_VALUE)
.addComponent(jTextField1,
[Link].PREFERRED_SIZE, 142,
[Link].PREFERRED_SIZE)))
.addGap(47, 47, 47))
);
[Link](
[Link]([Link])
.addGroup([Link]()
.addContainerGap()

.addGroup([Link]([Link]
LINE)
4
0
.addComponent(jLabel1)
.addComponent(jTextField1,
[Link].PREFERRED_SIZE,
[Link].DEFAULT_SIZE,
[Link].PREFERRED_SIZE))
.addGap(18, 18, 18)
.addComponent(jButton1)
.addContainerGap(17, Short.MAX_VALUE))
);

pack();
}// </editor-fold>

private void jButton1ActionPerformed([Link] evt) {


// TODO add your handling code here:
}

private void jTextField1ActionPerformed([Link] evt) {


// TODO add your handling code here:
}

/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code
(optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default
look and feel.
* For details see
4
1
[Link]
*/
try {
for ([Link] info :
[Link]()) {
if ("Nimbus".equals([Link]())) {
[Link]([Link]());
break;
}
}
} catch (ClassNotFoundException ex) {

[Link]([Link]()).log([Link]
[Link], null, ex);
} catch (InstantiationException ex) {

[Link]([Link]()).log([Link]
[Link], null, ex);
} catch (IllegalAccessException ex) {

[Link]([Link]()).log([Link]
[Link], null, ex);
} catch ([Link] ex) {

[Link]([Link]()).log([Link]
[Link], null, ex);
}
//</editor-fold>

/* Create and display the form */


[Link](new Runnable() {
public void run() {
new GOTO().setVisible(true);
4
2
}
});
}

// Variables declaration - do not modify


public [Link] jButton1;
private [Link] jLabel1;
public [Link] jTextField1;
// End of variables declaration
}

Design

6)Themes
Source
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package [Link];

public class THEMES extends [Link] {

/**
* Creates new form THEMES
*/
public THEMES() {
4
3
initComponents();
}

/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {

jLabel1 = new [Link]();


jComboBox1 = new [Link]();
jButton1 = new [Link]();
jButton2 = new [Link]();

setDefaultCloseOperation([Link].EXIT_ON_CLOSE);

[Link](new [Link]("Tahoma", 0, 14)); // NOI18N


[Link]("Theme");

[Link](new [Link]("Tahoma", 0, 14)); // NOI18N


[Link](new [Link](new
String[] { "Default", "Night", "Sky", "Pink" }));

[Link](new [Link]("Tahoma", 0, 14)); // NOI18N


[Link]("Apply");
[Link](new [Link]() {
public void actionPerformed([Link] evt) {
jButton1ActionPerformed(evt);
}
});
4
4
[Link](new [Link]("Tahoma", 0, 14)); // NOI18N
[Link]("Exit");
[Link](new [Link]() {
public void actionPerformed([Link] evt) {
jButton2ActionPerformed(evt);
}
});

[Link] layout = new


[Link](getContentPane());
getContentPane().setLayout(layout);
[Link](
[Link]([Link])
.addGroup([Link]()
.addGap(49, 49, 49)

.addGroup([Link]([Link]
ING, false)
.addComponent(jButton1, [Link].DEFAULT_SIZE,
[Link].DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel1, [Link].DEFAULT_SIZE,
[Link].DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(75, 75, 75)

.addGroup([Link]([Link]
ING, false)
.addComponent(jComboBox1, 0,
[Link].DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButton2, [Link].DEFAULT_SIZE,
[Link].DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap(94, Short.MAX_VALUE))
);
4
5
[Link](
[Link]([Link])
.addGroup([Link]()
.addGap(31, 31, 31)

.addGroup([Link]([Link]
LINE)
.addComponent(jLabel1, [Link].PREFERRED_SIZE,
23, [Link].PREFERRED_SIZE)
.addComponent(jComboBox1,
[Link].PREFERRED_SIZE,
[Link].DEFAULT_SIZE,
[Link].PREFERRED_SIZE))
.addGap(32, 32, 32)

.addGroup([Link]([Link]
LINE)
.addComponent(jButton1)
.addComponent(jButton2))
.addContainerGap(38, Short.MAX_VALUE))
);

pack();
}// </editor-fold>

private void jButton1ActionPerformed([Link] evt) {


// TODO add your handling code here:

private void jButton2ActionPerformed([Link] evt) {


// TODO add your handling code here:
}
4
6
public int value(){
return [Link]();
}
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code
(optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default
look and feel.
* For details see
[Link]
*/
try {
for ([Link] info :
[Link]()) {
if ("Nimbus".equals([Link]())) {
[Link]([Link]());
break;
}
}
} catch (ClassNotFoundException ex) {

[Link]([Link]()).log([Link].
[Link], null, ex);
} catch (InstantiationException ex) {

[Link]([Link]()).log([Link].
[Link], null, ex);
} catch (IllegalAccessException ex) {
4
7
[Link]([Link]()).log([Link].
[Link], null, ex);
} catch ([Link] ex) {

[Link]([Link]()).log([Link].
[Link], null, ex);
}
//</editor-fold>

/* Create and display the form */


[Link](new Runnable() {
public void run() {
new THEMES().setVisible(true);
}
});
}

// Variables declaration - do not modify


public [Link] jButton1;
public [Link] jButton2;
private [Link] jComboBox1;
private [Link] jLabel1;
// End of variables declaration
}

Design

4
8
Interfaces
COLOR

FONT FIND

4
9
GOTO THEMES

FIRST

[Link]:

So basically the conclusion is we use the text editor in wide variety of aspects
To make the changes in text or to add more features or make the text more
attractive .Its major application is used in many programming languages like
Java
Text Editor is simple software which can be accessed by anyone

5
0
[Link]

[Link]

[Link]

5
1

You might also like