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

Final Java Document

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)
49 views51 pages

Final Java Document

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
You are on page 1/ 51

“TEXT EDITOR”

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

By
GROUP MEMBERS REGISTRATION NUMBER
R.Rama Sai Akhil 15MIS0080
S.Aisvarya 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,S.Aisvarya,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: R.Rama Sai Akhil


S.Aisvarya

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:
1.INTRODUCTION

2. PROBLEM DEFINITION
2.1. FEATURES OF THE PROPOSED SYSTEM

3. SYSTEM REQUIREMENTS

4. IMPLEMENTATION

5.CONCLUSION

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.

4.IMPLEMENTATION

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 text.editor;

6
import java.awt.GraphicsEnvironment;
import java.awt.Font;
import java.io.*;

public class TEXTEDITOR {

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

}
FIRST f1=new FIRST();
f1.setVisible(true);
}

1)COLOR
Source
package text.editor;

7
public class COLOR extends javax.swing.JFrame {

public COLOR() {
initComponents();
}

public int mycolor(){


int z=0;
if(jRadioButton1.isSelected()){
z=1;
}
else if(jRadioButton2.isSelected()){
z=2;
}
else if(jRadioButton3.isSelected()){
z=3;
}
else if(jRadioButton4.isSelected()){
z=4;
}
else if(jRadioButton5.isSelected()){
z=5;
}
else if(jRadioButton6.isSelected()){
z=6;
}
else if(jRadioButton7.isSelected()){
z=7;
}
else if(jRadioButton8.isSelected()){
z=8;
}
8
else if(jRadioButton9.isSelected()){
z=9;
}
else if(jRadioButton10.isSelected()){
z=10;
}
else if(jRadioButton11.isSelected()){
z=11;
}
else if(jRadioButton12.isSelected()){
z=12;
}
else if(jRadioButton13.isSelected()){
z=13;
}
return z;
}

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

buttonGroup1 = new javax.swing.ButtonGroup();


jLabel1 = new javax.swing.JLabel();
jRadioButton1 = new javax.swing.JRadioButton();
jRadioButton2 = new javax.swing.JRadioButton();
jRadioButton3 = new javax.swing.JRadioButton();
jRadioButton4 = new javax.swing.JRadioButton();
jRadioButton5 = new javax.swing.JRadioButton();
jRadioButton6 = new javax.swing.JRadioButton();
jRadioButton7 = new javax.swing.JRadioButton();
jRadioButton8 = new javax.swing.JRadioButton();
jRadioButton9 = new javax.swing.JRadioButton();
jRadioButton10 = new javax.swing.JRadioButton();
9
jRadioButton11 = new javax.swing.JRadioButton();
jRadioButton12 = new javax.swing.JRadioButton();
jRadioButton13 = new javax.swing.JRadioButton();
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

jLabel1.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N


jLabel1.setText("Font Colour");

buttonGroup1.add(jRadioButton1);
jRadioButton1.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jRadioButton1.setText("Black");

buttonGroup1.add(jRadioButton2);
jRadioButton2.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jRadioButton2.setText("White");

buttonGroup1.add(jRadioButton3);
jRadioButton3.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jRadioButton3.setText("Red");

buttonGroup1.add(jRadioButton4);
jRadioButton4.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jRadioButton4.setText("Green");

buttonGroup1.add(jRadioButton5);
jRadioButton5.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jRadioButton5.setText("Blue");

buttonGroup1.add(jRadioButton6);
1
0
jRadioButton6.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jRadioButton6.setText("Yellow");

buttonGroup1.add(jRadioButton7);
jRadioButton7.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jRadioButton7.setText("Orange");

buttonGroup1.add(jRadioButton8);
jRadioButton8.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jRadioButton8.setText("Pink");

buttonGroup1.add(jRadioButton9);
jRadioButton9.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jRadioButton9.setText("Magenta");

buttonGroup1.add(jRadioButton10);
jRadioButton10.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jRadioButton10.setText("Cyan");

buttonGroup1.add(jRadioButton11);
jRadioButton11.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jRadioButton11.setText("Gray");

buttonGroup1.add(jRadioButton12);
jRadioButton12.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jRadioButton12.setText("Light Gray");

buttonGroup1.add(jRadioButton13);
jRadioButton13.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jRadioButton13.setText("Dark Gray");

jButton1.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N


jButton1.setText("Change");
1
1
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});

jButton2.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N


jButton2.setText("Exit");

javax.swing.GroupLayout layout = new


javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(

layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(33, 33, 33)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LE
ADING)
.addComponent(jRadioButton1)
.addComponent(jRadioButton5)
.addComponent(jRadioButton4)
.addComponent(jRadioButton3)
.addComponent(jRadioButton2)
.addComponent(jRadioButton11)
.addComponent(jRadioButton13)
.addComponent(jButton1,
javax.swing.GroupLayout.PREFERRED_SIZE, 118,
javax.swing.GroupLayout.PREFERRED_SIZE))

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 85,
Short.MAX_VALUE)
1
2
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LE
ADING, false)
.addComponent(jRadioButton6)
.addComponent(jRadioButton7)
.addComponent(jRadioButton8)
.addComponent(jRadioButton9)
.addComponent(jRadioButton10)
.addComponent(jRadioButton12,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButton2,
javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(75, 75, 75))
.addGroup(layout.createSequentialGroup()
.addGap(121, 121, 121)
.addComponent(jLabel1)
.addGap(0, 0, Short.MAX_VALUE))
);
layout.setVerticalGroup(

layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(19, 19, 19)
.addComponent(jLabel1)
.addGap(18, 18, 18)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BA
SELINE)
.addComponent(jRadioButton1)
.addComponent(jRadioButton6))
1
3
.addGap(18, 18, 18)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BA
SELINE)
.addComponent(jRadioButton2)
.addComponent(jRadioButton7))
.addGap(18, 18, 18)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BA
SELINE)
.addComponent(jRadioButton3)
.addComponent(jRadioButton8))
.addGap(18, 18, 18)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BA
SELINE)
.addComponent(jRadioButton4)
.addComponent(jRadioButton9))
.addGap(18, 18, 18)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BA
SELINE)
.addComponent(jRadioButton5)
.addComponent(jRadioButton10))
.addGap(18, 18, 18)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BA
SELINE)
.addComponent(jRadioButton11)
.addComponent(jRadioButton12))
.addGap(18, 18, 18)
.addComponent(jRadioButton13)
.addGap(18, 18, 18)
1
4
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LE
ADING, false)
.addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE,
37, Short.MAX_VALUE))
.addContainerGap(14, Short.MAX_VALUE))
);

pack();
}

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {


}

public static void main(String args[]) {


try {
for (javax.swing.UIManager.LookAndFeelInfo info :
javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {

java.util.logging.Logger.getLogger(COLOR.class.getName()).log(java.util.logging
.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {

java.util.logging.Logger.getLogger(COLOR.class.getName()).log(java.util.logging
.Level.SEVERE, null, ex);
1
5
} catch (IllegalAccessException ex) {

java.util.logging.Logger.getLogger(COLOR.class.getName()).log(java.util.logging
.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {

java.util.logging.Logger.getLogger(COLOR.class.getName()).log(java.util.logging
.Level.SEVERE, null, ex);
}
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new COLOR().setVisible(true);
}
});
}

private javax.swing.ButtonGroup buttonGroup1;


public javax.swing.JButton jButton1;
public javax.swing.JButton jButton2;
private javax.swing.JLabel jLabel1;
private javax.swing.JRadioButton jRadioButton1;
private javax.swing.JRadioButton jRadioButton10;
private javax.swing.JRadioButton jRadioButton11;
private javax.swing.JRadioButton jRadioButton12;
private javax.swing.JRadioButton jRadioButton13;
private javax.swing.JRadioButton jRadioButton2;
private javax.swing.JRadioButton jRadioButton3;
private javax.swing.JRadioButton jRadioButton4;
private javax.swing.JRadioButton jRadioButton5;
private javax.swing.JRadioButton jRadioButton6;
private javax.swing.JRadioButton jRadioButton7;
private javax.swing.JRadioButton jRadioButton8;
private javax.swing.JRadioButton 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 text.editor;

/**
*
*/
public class FIND extends javax.swing.JFrame {

/**
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 javax.swing.JLabel();


jLabel2 = new javax.swing.JLabel();
jTextField1 = new javax.swing.JTextField();
jTextField2 = new javax.swing.JTextField();
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
jButton3 = new javax.swing.JButton();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

jLabel1.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N


jLabel1.setText("Find :");

jLabel2.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N


jLabel2.setText("Replace with :");

jTextField1.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N


1
8
jTextField1.addActionListener(new java.awt.event.ActionListener()
{
public void actionPerformed(java.awt.event.ActionEvent evt)
{
jTextField1ActionPerformed(evt);
}
});

jTextField2.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

jButton1.setText("Find Next");
jButton1.addActionListener(new java.awt.event.ActionListener()
{
public void actionPerformed(java.awt.event.ActionEvent evt)
{
jButton1ActionPerformed(evt);
}
});

jButton2.setText("Replace");

jButton3.setText("Exit");

javax.swing.GroupLayout layout = new


javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEAD
ING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
1
9
layout.createSequentialGroup()
.addGap(47, 47, 47)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEAD
ING)
.addComponent(jLabel2)
.addComponent(jLabel1))

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEAD
ING)
.addComponent(jButton3,
javax.swing.GroupLayout.PREFERRED_SIZE, 79,
javax.swing.GroupLayout.PREFERRED_SIZE)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEAD
ING)
.addComponent(jTextField2,
javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.PREFERRED_SIZE, 161,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField1,
javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.PREFERRED_SIZE, 161,
javax.swing.GroupLayout.PREFERRED_SIZE))))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEAD
2
0
ING)
.addComponent(jButton1,
javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.PREFERRED_SIZE, 100,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton2,
javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.PREFERRED_SIZE, 100,
javax.swing.GroupLayout.PREFERRED_SIZE))))
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(41, 41, 41)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASE
LINE)
.addComponent(jTextField1,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel1))

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jButton1)
.addGap(24, 24, 24)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASE
LINE)
.addComponent(jTextField2,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
2
1
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel2))

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jButton2)

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 38,
Short.MAX_VALUE)
.addComponent(jButton3)
.addGap(19, 19, 19))
);

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

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt)


{
// TODO add your handling code here:

private void jTextField1ActionPerformed(java.awt.event.ActionEvent 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
http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info :
javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {

java.util.logging.Logger.getLogger(FIND.class.getName()).log(java.util.logging.Lev
el.SEVERE, null, ex);
} catch (InstantiationException ex) {

java.util.logging.Logger.getLogger(FIND.class.getName()).log(java.util.logging.Lev
el.SEVERE, null, ex);
} catch (IllegalAccessException ex) {

java.util.logging.Logger.getLogger(FIND.class.getName()).log(java.util.logging.Lev
el.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {

java.util.logging.Logger.getLogger(FIND.class.getName()).log(java.util.logging.Lev
el.SEVERE, null, ex);
}
//</editor-fold>

/* Create and display the form */


2
3
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new FIND().setVisible(true);
}
});
}

// Variables declaration - do not modify


public javax.swing.JButton jButton1;
public javax.swing.JButton jButton2;
public javax.swing.JButton jButton3;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
public javax.swing.JTextField jTextField1;
public javax.swing.JTextField 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 text.editor;

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

public class FONT extends javax.swing.JFrame {

/**
* Creates new form FONT
*/
public Font selectedFont;
String fontString[] =
GraphicsEnvironment.getLocalGraphicsEnvironment().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 javax.swing.JScrollPane();


jList1 = new javax.swing.JList();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jComboBox1 = new javax.swing.JComboBox();
jComboBox2 = new javax.swing.JComboBox();
jComboBox3 = new javax.swing.JComboBox();
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
jLabel4 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();

jList1.setModel(new javax.swing.AbstractListModel() {
String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
public int getSize() { return strings.length; }
public Object getElementAt(int i) { return strings[i]; }
});
jScrollPane1.setViewportView(jList1);

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

jLabel1.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N


jLabel1.setText("Select Font");

jLabel2.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N


jLabel2.setText("Select Size");

jLabel3.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N


jLabel3.setText("Select Style");

2
6
jComboBox1.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jComboBox1.setModel(new
javax.swing.DefaultComboBoxModel(fontString));
jComboBox1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jComboBox1ActionPerformed(evt);
}
});

jComboBox2.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N


jComboBox2.setModel(new
javax.swing.DefaultComboBoxModel(fontSizeString));
jComboBox2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jComboBox2ActionPerformed(evt);
}
});

jComboBox3.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N


jComboBox3.setModel(new
javax.swing.DefaultComboBoxModel(fontStyleString));
jComboBox3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jComboBox3ActionPerformed(evt);
}
});

jButton1.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N


jButton1.setText("OK");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
2
7
});

jButton2.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N


jButton2.setText("Cancel");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});

jLabel4.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N


jLabel4.setText("Preview:");

jLabel5.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N


jLabel5.setText(" AaBbCcDd");
jLabel5.setBorder(javax.swing.BorderFactory.createLineBorder(new
java.awt.Color(0, 0, 0)));

javax.swing.GroupLayout layout = new


javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(27, 27, 27)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEAD
ING, false)
.addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(layout.createSequentialGroup()

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEAD
2
8
ING)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEAD
ING, false)
.addComponent(jLabel3,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel4)
.addComponent(jButton1,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel2,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addComponent(jLabel1,
javax.swing.GroupLayout.PREFERRED_SIZE, 83,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(68, 68, 68)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEAD
ING, false)
.addComponent(jButton2,
javax.swing.GroupLayout.DEFAULT_SIZE, 112, Short.MAX_VALUE)
.addComponent(jComboBox3, 0,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jComboBox2, 0,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jComboBox1, 0,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
.addContainerGap(51, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
2
9
.addGroup(layout.createSequentialGroup()
.addGap(37, 37, 37)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASE
LINE)
.addComponent(jLabel1)
.addComponent(jComboBox1,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(25, 25, 25)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASE
LINE)
.addComponent(jLabel2)
.addComponent(jComboBox2,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(28, 28, 28)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASE
LINE)
.addComponent(jLabel3)
.addComponent(jComboBox3,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(31, 31, 31)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASE
LINE)
.addComponent(jButton1)
3
0
.addComponent(jButton2))
.addGap(27, 27, 27)
.addComponent(jLabel4)
.addGap(29, 29, 29)
.addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 85,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(24, Short.MAX_VALUE))
);

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

private void jComboBox1ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
jLabel5.setFont(new
Font(String.valueOf(jComboBox1.getSelectedItem()),jComboBox3.getSelectedInd
ex(),Integer.parseInt(String.valueOf(jComboBox2.getSelectedItem()))));
}

private void jComboBox2ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
jLabel5.setFont(new
Font(String.valueOf(jComboBox1.getSelectedItem()),jComboBox3.getSelectedInd
ex(),Integer.parseInt(String.valueOf(jComboBox2.getSelectedItem()))));
}

private void jComboBox3ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
jLabel5.setFont(new
Font(String.valueOf(jComboBox1.getSelectedItem()),jComboBox3.getSelectedInd
ex(),Integer.parseInt(String.valueOf(jComboBox2.getSelectedItem()))));
}

3
1
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
}

public Font returnfont(){


String fontSS = String.valueOf(jComboBox1.getSelectedItem());
int fontSZ =
Integer.parseInt(String.valueOf(jComboBox2.getSelectedItem()));
int fontST = jComboBox3.getSelectedIndex();

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


return selectedFont;
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent 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
http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
3
2
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info :
javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {

java.util.logging.Logger.getLogger(FONT.class.getName()).log(java.util.logging.Le
vel.SEVERE, null, ex);
} catch (InstantiationException ex) {

java.util.logging.Logger.getLogger(FONT.class.getName()).log(java.util.logging.Le
vel.SEVERE, null, ex);
} catch (IllegalAccessException ex) {

java.util.logging.Logger.getLogger(FONT.class.getName()).log(java.util.logging.Le
vel.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {

java.util.logging.Logger.getLogger(FONT.class.getName()).log(java.util.logging.Le
vel.SEVERE, null, ex);
}
//</editor-fold>

/* Create and display the form */


java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new FONT().setVisible(true);
}
3
3
});
}

// Variables declaration - do not modify


public javax.swing.JButton jButton1;
public javax.swing.JButton jButton2;
private javax.swing.JComboBox jComboBox1;
private javax.swing.JComboBox jComboBox2;
private javax.swing.JComboBox jComboBox3;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JLabel jLabel5;
private javax.swing.JList jList1;
private javax.swing.JScrollPane 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 text.editor;

import javax.swing.*;
import java.awt.*;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.DataFlavor;
import java.awt.event.*;
import java.io.*;
import javax.swing.text.*;
import java.text.*;
import java.util.*;
import javax.swing.undo.*;
import javax.swing.event.*;
import java.net.*;
import javax.swing.text.JTextComponent;

public class FIRST extends javax.swing.JFrame {

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, UIManager.getColor("Label.foreground"));

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

JLabel label = new JLabel(text);


label.setForeground(color);

return label;

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

}
public void customInit() {
textPanel.getDocument().addUndoableEditListener(undoMgr);
MouseListener popupListener = new PopupListener();
textPanel.addMouseListener(popupListener);
JMenuItem jMenuItema=new JMenuItem("Cut");
3
6
JMenuItem jMenuItemb=new JMenuItem("Copy");
JMenuItem jMenuItemc=new JMenuItem("Paste");
JMenuItem jMenuItemd=new JMenuItem("SelectAll");
pop.add(undoAction);
pop.add(redoAction);
pop.addSeparator();
pop.add(jMenuItema);
pop.add(jMenuItemb);
pop.add(jMenuItemc);
pop.add(jMenuItemd);
jMenuItema.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem9ActionPerformed(evt);
}
});
jMenuItemb.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem10ActionPerformed(evt);
}
});
jMenuItemc.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem11ActionPerformed(evt);
}
});
jMenuItemd.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent 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 text.editor;

public class GOTO extends javax.swing.JFrame {

/**
* 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 javax.swing.JLabel();


jTextField1 = new javax.swing.JTextField();
jButton1 = new javax.swing.JButton();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

jLabel1.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N


jLabel1.setText("Go to line : ");

jTextField1.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N


jTextField1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jTextField1ActionPerformed(evt);
}
});

jButton1.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N


jButton1.setText("Go To");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
3
9
javax.swing.GroupLayout layout = new
javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
layout.createSequentialGroup()

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAI
LING)
.addGroup(layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addComponent(jButton1))
.addGroup(layout.createSequentialGroup()
.addGap(30, 30, 30)
.addComponent(jLabel1)

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 67,
Short.MAX_VALUE)
.addComponent(jTextField1,
javax.swing.GroupLayout.PREFERRED_SIZE, 142,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(47, 47, 47))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASE
LINE)
4
0
.addComponent(jLabel1)
.addComponent(jTextField1,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addComponent(jButton1)
.addContainerGap(17, Short.MAX_VALUE))
);

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

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
}

private void jTextField1ActionPerformed(java.awt.event.ActionEvent 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
http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info :
javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {

java.util.logging.Logger.getLogger(GOTO.class.getName()).log(java.util.logging.Le
vel.SEVERE, null, ex);
} catch (InstantiationException ex) {

java.util.logging.Logger.getLogger(GOTO.class.getName()).log(java.util.logging.Le
vel.SEVERE, null, ex);
} catch (IllegalAccessException ex) {

java.util.logging.Logger.getLogger(GOTO.class.getName()).log(java.util.logging.Le
vel.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {

java.util.logging.Logger.getLogger(GOTO.class.getName()).log(java.util.logging.Le
vel.SEVERE, null, ex);
}
//</editor-fold>

/* Create and display the form */


java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new GOTO().setVisible(true);
4
2
}
});
}

// Variables declaration - do not modify


public javax.swing.JButton jButton1;
private javax.swing.JLabel jLabel1;
public javax.swing.JTextField 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 text.editor;

public class THEMES extends javax.swing.JFrame {

/**
* 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 javax.swing.JLabel();


jComboBox1 = new javax.swing.JComboBox();
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

jLabel1.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N


jLabel1.setText("Theme");

jComboBox1.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N


jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new
String[] { "Default", "Night", "Sky", "Pink" }));

jButton1.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N


jButton1.setText("Apply");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
4
4
jButton2.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jButton2.setText("Exit");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});

javax.swing.GroupLayout layout = new


javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(49, 49, 49)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEAD
ING, false)
.addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(75, 75, 75)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEAD
ING, false)
.addComponent(jComboBox1, 0,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap(94, Short.MAX_VALUE))
);
4
5
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(31, 31, 31)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASE
LINE)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE,
23, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jComboBox1,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(32, 32, 32)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASE
LINE)
.addComponent(jButton1)
.addComponent(jButton2))
.addContainerGap(38, Short.MAX_VALUE))
);

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

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:

private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
}
4
6
public int value(){
return jComboBox1.getSelectedIndex();
}
/**
* @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
http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info :
javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {

java.util.logging.Logger.getLogger(THEMES.class.getName()).log(java.util.logging.
Level.SEVERE, null, ex);
} catch (InstantiationException ex) {

java.util.logging.Logger.getLogger(THEMES.class.getName()).log(java.util.logging.
Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
4
7
java.util.logging.Logger.getLogger(THEMES.class.getName()).log(java.util.logging.
Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {

java.util.logging.Logger.getLogger(THEMES.class.getName()).log(java.util.logging.
Level.SEVERE, null, ex);
}
//</editor-fold>

/* Create and display the form */


java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new THEMES().setVisible(true);
}
});
}

// Variables declaration - do not modify


public javax.swing.JButton jButton1;
public javax.swing.JButton jButton2;
private javax.swing.JComboBox jComboBox1;
private javax.swing.JLabel jLabel1;
// End of variables declaration
}

Design

4
8
Interfaces
COLOR

FONT FIND

4
9
GOTO THEMES

FIRST

6.Conclusion:

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
7.References

www.google.com

www.wikipedia.com

5
1

You might also like