Skip to main content

Mark JText Editor

ABSTARCT
          
              MARK JTEXT  Editor is a basic text editor that you can use to create simple documents. The most common use for MARK JTEXT  Editor is to view or edit text files. It supports only very basic formatting; you cannot accidentally save special formatting in documents that need to remain pure text. This is especially useful when creating Java Programs, HTML documents for a Web page because special characters or other formatting may not appear in your published Web page or may even cause errors.

              You can save your MARK JTEXT  Editor files as Unicode, ANSI, UTF-8, or big-endian Unicode. These formats provide you greater flexibility when working with documents that use different character sets.

                The MARK JTEXT  Editor Application is a menu driven application that performs text editing operations such as File, Edit, earch and Help operations.The MARK JTEXT editor is customized for a specific use that can determine what the user is editing and assist the user, often by completing programming terms and showing tooltips with relevant documentation. Many text editors for software developers include source code syntax highlighting and automatic indentation to make programs easier to read and write. The MARK JTEXT  editor lets the user select the name of an include file, function or variable, then jump to its definition. Some also allow for easy navigation back to the original section of code by storing the initial cursor location or by displaying the requested definition in a popup window or temporary buffer. Some editors implement this ability themselves, but often an auxiliary utility like ctags is used to locate the definitions.

 Existing System

              The existing system has many drawbacks like maintaining records for all Clients, online transactions is not possible, and manpower is required. It is more difficult by verifying all the information and making reports for each and every transactions ,up and down time details and the final reports which are going to be stored to their transaction have to be kept secure and also generation of every report is very difficult. The present system is a manual work and is should require so much of manpower and it is very time consuming process.

Time Delay
              
              Information related to all transactions is stored in different tables. Since all the values are stored in different tables, it takes a lot of time to prepare different reports and know the information about that particular transaction.

 

Redundancy

               As the data passes through different tables. It involves a lot of
Complication and duplication in manual work, thus it causes redundancy.
 

Accuracy

                   Since data is compiled at different types of transactions. If the data is more validation becomes difficult. This may result in loss of accuracy.

 

Reports

                   Various reports are tabulated manually. They are not much attractive and require more time. Online enquiry of data is not possible.

 
Proposed System

                  Proposed system is entirely computer based one. In this all data is entered into computer and stored it allows to store large amount of data. Since the system is developed to provide visual environment, it is very easy for the evaluator to get understand and work on it. In this evaluator need not bother about the common data entry mistakes as well as the common data fields validated against pre-specified rules and regulations.

            We can get any information about the process at online Because of software capabilities reports can be generated speedily and in attractive and desired manner. The data security checks are made to prevent unauthorized access by other users. The system is users friendly by providing tree view controls, customized text boxes, combo boxes and other options. Since database is fully normalized, memory usage is very less compared to existing manual system.

 

Goals of New System

 
·       To reduce paper work.

·       To save time by getting faster results.

·       The reports needed by the officials for analysis and decision making will be readily available.

·       To avoid errors inherent in manual paper work .

·       To improve management of permanent and updated information i.e.,

·       databases by providing facilities to edit this information, manipulate it

·       and finally retrieve this information as efficiently as possible.

·       To provide tangible as well as intangible cost saving .

·       Data updation for time-by-time information is nicely retrievable

 

 Scope of the System

                The proposed system scope is stand alone. We are using this system in a single pc. In future it can be enhanced to be a global communication medium.

 

 
Module Description


The system “ MARK JTEXT Editor “ consists of 4 modules.


·       File Processing module

·       Editing Module

·       Formatting module

·       Printing Module

 

The following are the functions of MARK JTEXT  editor

 
·       Reading text files: Open any text file and view its contents.

·       Creating text file: We can create a new text file and save it with our own file name

·       Modifying text: We can open an existing text file and modify its contents

·       Displaying text: Displays the contents of a file

·       Copying text: We can copy the contents of one file into another file

·       Merging: Two different text files can be merged into third file or one of the two files

·       Information: We can view the properties of a given text file

·       Formatting: Change the font size, font type font style of the text file when displaying

·       Find: Finding a given word in a text file.

 

Features of the MARK JTEXT  Editor

 
·       It is more efficient than Notepad

·       Auto wrap text

·       It displays metadata of a file which is not available in notepad.

·       It can be used to type programs also.

 


Features to be implemented

 
·       Maintainability

·       Exception handling

  

Technologies to be used

·       Programming Language: JAVA

·       Operating System: Windows 7, LINUX, Solaris

·       IDEs: Eclipse with My Eclipse plugins/Net Beans/RAD




   Hardware requirements

·       Pentium processor -------- 233 MHZ or above

·       RAM Capacity -------- 128MB

·       Hard Disk -------- 20GB

·       Floppy disk -------- 1.44 MB

·       CD-ROM Drive -------- 32 HZ

·       KEYBOARD -------- 108 Standard

 

 INTRODUCTION

               The project is based on “Text Editor”. This project is carried out at Netmax Technologies. This software firm deals in developing software for its clients.

 

Text Editor: - text editor is a type of program used for editing plain text files.A plain text file is represented and edited by showing all the characters as they are present in the file. The only characters usable for 'mark-up' are the control characters of the used character set; in practice this is newline, tab and form feed. The most commonly used character set is ASCII, especially recently, as plain text files are more often being used for programming and configuration, and less frequently for documentation (e.g. detailed instructions, user guides) than in the past.

 

Features

Our text editor provides basic features of an editor.
            ·       String searching  ­- search string with by typing it in search string.

·       Cut, copy, and paste - most text editors provide methods to duplicate and move text within the file, or between files.

·       Multiple font colors – The editor provides 4 different font colors to make a text more interactive and attractive.

·       Fonts – the editor provides all fonts that can be used to make a text more appealing.

·       Dock- the editor provides a very interactive graphical user interface in which there is a dock. The dock consist those options which are in frequent use for e.g. cut, copy, paste etc.

 
System development life cycle (SDLC)

       This is also known as Classic Life Cycle Model (or) Linear Sequential Model (or) Waterfall Method. This has the following activities.

1. System/Information Engineering and Modeling

2. Software Requirements Analysis

3. Systems Analysis and Design

         4. Code Generation

5. Testing
  
        6. Maintenance

 


System/Information Engineering and Modeling


 
       As software is always of a large system (or business), work begins by   establishing requirements for all system elements and then allocating some subset of these requirements to software. This system view is essential when software must interface with other elements such as hardware, people and other resources. System is the basic and very critical requirement for the existence of software in any entity. So if the system is not in place, the system should be engineered and put in place. In some cases, to extract the maximum output, the system should be re-engineered and spruced up. Once the ideal system is engineered or tuned, the development team studies the software requirement for the system.

 


Software Requirement Analysis


            This is also known as feasibility study. In this phase, the development team visits the customer and studies their system. They investigate the need for possible software automation in the given system. By the end of the feasibility study, the team furnishes a document that holds the different specific recommendations for the candidate system. It also includes the personnel assignments, costs, project schedule, and target dates. The requirements gathering process is intensified and focused specially on software. To understand the nature of the program(s) to be built, the system engineer ("analyst") must understand the information domain for the software, as well as required function, behavior, performance and interfacing. The essential purpose of this phase is to find the need and to define the problem that needs to be solved.

System Analysis and Design


             In this phase, the software development process, the software's overall structure and its nuances are defined. In terms of the client/server technology, the number of tiers needed for the package architecture, the database design, the data structure design etc are all defined in this phase. A software development model is created. Analysis and Design are very crucial in the whole development cycle. Any glitch in the design phase could be very expensive to solve in the later stage of the software development. Much care is taken during this phase. The logical system of the product is developed in this phase.


Code generation

          The design must be translated into a machine-readable form. The code generation step performs this task. If the design is performed in a detailed manner, code generation can be accomplished without much complication. Programming tools like Compilers, Interpreters, and Debuggers are used to generate the code. Different high level programming languages like C, C++, Pascal, and Java are used for coding. With respect to the type of application, the right programming language is chosen
 
/*
 * TextEditorGUI.java
 *
 */

import java.io.*;
import javax.swing.JFileChooser;


/**
 *
 * @author  Markandayan
 */
public class TextEditorGUI extends javax.swing.JFrame {

    
    private File fileName = new File("noname");
    
    
    /** Creates new form TextEditorGUI */
    public TextEditorGUI() {
        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() {

        copyButton = new javax.swing.JButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        editPane = new javax.swing.JEditorPane();
        cutButton = new javax.swing.JButton();
        pasteButton = new javax.swing.JButton();
        selectAllButton = new javax.swing.JButton();
        clearButton = new javax.swing.JButton();
        wwwButton = new javax.swing.JButton();
        urlTextField = new javax.swing.JTextField();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        loadMenu = new javax.swing.JMenuItem();
        saveMenu = new javax.swing.JMenuItem();
        saveAsMenu = new javax.swing.JMenuItem();
        editMenu = new javax.swing.JMenu();
        copyMenu = new javax.swing.JMenuItem();
        cutMenu = new javax.swing.JMenuItem();
        pasteMenu = new javax.swing.JMenuItem();
        selectAllMenu = new javax.swing.JMenuItem();
        clearMenu = new javax.swing.JMenuItem();
        find = new javax.swing.JMenuItem();
        jSeparator1 = new javax.swing.JSeparator();
        findReplace = new javax.swing.JMenuItem();
        exampleTextMenu = new javax.swing.JMenuItem();
        jSeparator2 = new javax.swing.JPopupMenu.Separator();
        jMenu2 = new javax.swing.JMenu();
        jMenu3 = new javax.swing.JMenu();
        helpContents = new javax.swing.JMenuItem();
        about = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Mark JText Editor");
        setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        setName("mainFrame"); // NOI18N

        copyButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/short_icon/copy.png"))); // NOI18N
        copyButton.setText("Copy");
        copyButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                copyButtonActionPerformed(evt);
            }
        });

        jScrollPane1.setAutoscrolls(true);
        jScrollPane1.setHorizontalScrollBar(null);

        editPane.setBackground(new java.awt.Color(233, 228, 242));
        editPane.setMargin(new java.awt.Insets(3, 20, 3, 20));
        jScrollPane1.setViewportView(editPane);

        cutButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/short_icon/cut.png"))); // NOI18N
        cutButton.setText("Cut");
        cutButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cutButtonActionPerformed(evt);
            }
        });

        pasteButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/short_icon/paste.png"))); // NOI18N
        pasteButton.setText("Paste");
        pasteButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                pasteButtonActionPerformed(evt);
            }
        });

        selectAllButton.setText("Select All");
        selectAllButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                selectAllButtonActionPerformed(evt);
            }
        });

        clearButton.setText("Clear");
        clearButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                clearButtonActionPerformed(evt);
            }
        });

        wwwButton.setText("WWW");
        wwwButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                wwwButtonActionPerformed(evt);
            }
        });

        urlTextField.setText("http://markandayannotes.blogspot.in");
        urlTextField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                urlTextFieldActionPerformed(evt);
            }
        });

        jMenu1.setText("File");

        loadMenu.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_O, java.awt.event.InputEvent.CTRL_MASK));
        loadMenu.setIcon(new javax.swing.ImageIcon(getClass().getResource("/short_icon/openFile.png"))); // NOI18N
        loadMenu.setText("Open");
        loadMenu.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                loadMenuActionPerformed(evt);
            }
        });
        jMenu1.add(loadMenu);

        saveMenu.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK));
        saveMenu.setIcon(new javax.swing.ImageIcon(getClass().getResource("/short_icon/saveFile.png"))); // NOI18N
        saveMenu.setText("Save");
        saveMenu.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                saveMenuActionPerformed(evt);
            }
        });
        jMenu1.add(saveMenu);

        saveAsMenu.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        saveAsMenu.setIcon(new javax.swing.ImageIcon(getClass().getResource("/short_icon/saveAll.png"))); // NOI18N
        saveAsMenu.setText("Save as...");
        saveAsMenu.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                saveAsMenuActionPerformed(evt);
            }
        });
        jMenu1.add(saveAsMenu);

        jMenuBar1.add(jMenu1);

        editMenu.setText("Edit");

        copyMenu.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.CTRL_MASK));
        copyMenu.setIcon(new javax.swing.ImageIcon(getClass().getResource("/short_icon/copy.png"))); // NOI18N
        copyMenu.setText("Copy");
        copyMenu.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                copyMenuActionPerformed(evt);
            }
        });
        editMenu.add(copyMenu);

        cutMenu.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_X, java.awt.event.InputEvent.CTRL_MASK));
        cutMenu.setIcon(new javax.swing.ImageIcon(getClass().getResource("/short_icon/cut.png"))); // NOI18N
        cutMenu.setText("Cut");
        cutMenu.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cutMenuActionPerformed(evt);
            }
        });
        editMenu.add(cutMenu);

        pasteMenu.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_V, java.awt.event.InputEvent.CTRL_MASK));
        pasteMenu.setIcon(new javax.swing.ImageIcon(getClass().getResource("/short_icon/paste.png"))); // NOI18N
        pasteMenu.setText("Paste");
        pasteMenu.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                pasteMenuActionPerformed(evt);
            }
        });
        editMenu.add(pasteMenu);

        selectAllMenu.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.CTRL_MASK));
        selectAllMenu.setText("Select All");
        selectAllMenu.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                selectAllMenuActionPerformed(evt);
            }
        });
        editMenu.add(selectAllMenu);

        clearMenu.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        clearMenu.setText("Clear");
        clearMenu.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                clearMenuActionPerformed(evt);
            }
        });
        editMenu.add(clearMenu);

        find.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F, java.awt.event.InputEvent.CTRL_MASK));
        find.setIcon(new javax.swing.ImageIcon(getClass().getResource("/short_icon/find.png"))); // NOI18N
        find.setText("Find");
        find.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                findActionPerformed(evt);
            }
        });
        editMenu.add(find);
        editMenu.add(jSeparator1);

        findReplace.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_H, java.awt.event.InputEvent.CTRL_MASK));
        findReplace.setIcon(new javax.swing.ImageIcon(getClass().getResource("/short_icon/findReplace.png"))); // NOI18N
        findReplace.setText("Find and Replace");
        findReplace.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                findReplaceActionPerformed(evt);
            }
        });
        editMenu.add(findReplace);

        exampleTextMenu.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F1, 0));
        exampleTextMenu.setText("Example Text");
        exampleTextMenu.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                exampleTextMenuActionPerformed(evt);
            }
        });
        editMenu.add(exampleTextMenu);
        editMenu.add(jSeparator2);

        jMenuBar1.add(editMenu);

        jMenu2.setText("View");
        jMenuBar1.add(jMenu2);

        jMenu3.setText("Help");

        helpContents.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F1, 0));
        helpContents.setText("Help Contents");
        helpContents.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                helpContentsActionPerformed(evt);
            }
        });
        jMenu3.add(helpContents);

        about.setText("About");
        about.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                aboutActionPerformed(evt);
            }
        });
        jMenu3.add(about);

        jMenuBar1.add(jMenu3);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 562, Short.MAX_VALUE)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                            .addComponent(wwwButton)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(urlTextField))
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                            .addComponent(copyButton)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(cutButton)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(pasteButton)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(selectAllButton)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(clearButton))))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(copyButton)
                    .addComponent(cutButton)
                    .addComponent(pasteButton)
                    .addComponent(selectAllButton)
                    .addComponent(clearButton))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(wwwButton)
                    .addComponent(urlTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 321, Short.MAX_VALUE)
                .addContainerGap())
        );

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

private void copyButtonActionPerformed(java.awt.event.ActionEvent evt) {                                           
    this.editPane.copy();
}                                          

private void cutButtonActionPerformed(java.awt.event.ActionEvent evt) {                                          
    this.editPane.cut();
}                                         

private void pasteButtonActionPerformed(java.awt.event.ActionEvent evt) {                                            
    this.editPane.paste();
}                                           

private void selectAllButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                
    this.editPane.selectAll();
}                                               

private void copyMenuActionPerformed(java.awt.event.ActionEvent evt) {                                         
    this.editPane.copy();
}                                        

private void cutMenuActionPerformed(java.awt.event.ActionEvent evt) {                                        
    this.editPane.cut();
}                                       

private void pasteMenuActionPerformed(java.awt.event.ActionEvent evt) {                                          
    this.editPane.paste();
}                                         

private void selectAllMenuActionPerformed(java.awt.event.ActionEvent evt) {                                              
    this.editPane.selectAll();
}                                             

private void exampleTextMenuActionPerformed(java.awt.event.ActionEvent evt) {                                                
    this.editPane.setText("Hello, World!!!");
    this.editPane.getHighlighter();
    this.editPane.setText("Hello, World!!!");
}                                               

private void saveMenuActionPerformed(java.awt.event.ActionEvent evt) {                                         
    BufferedWriter writer;
    try {
        writer = new BufferedWriter(new FileWriter(this.fileName));
        writer.write(this.editPane.getText());
        writer.close();
    }
    catch (IOException ioe) {
        this.editPane.setText("Sorry. Can't write file. Please contact with: mark2smartphone@gmail.com");
    }
}                                        

private void loadMenuActionPerformed(java.awt.event.ActionEvent evt) {                                         
    JFileChooser fileChooser = new JFileChooser();
    if (fileChooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {

        BufferedReader reader;
        StringBuilder stringBuilder = new StringBuilder();
        try {
            reader = new BufferedReader(new FileReader(fileChooser.getSelectedFile()));
            while (reader.ready()) {
                stringBuilder.append(reader.readLine() + "\n");
            }
            reader.close();
            this.editPane.setText(stringBuilder.toString());
            this.fileName = fileChooser.getSelectedFile();
        }
        catch (IOException ioe) {
            this.editPane.setText("Sorry. Can't open file. Please contact with: mark2smartphone@gmail.com");
        }
    }
}                                        

private void clearButtonActionPerformed(java.awt.event.ActionEvent evt) {                                            
    this.editPane.setText("");
}                                           

private void clearMenuActionPerformed(java.awt.event.ActionEvent evt) {                                          
    this.editPane.setText("");
}                                         

private void wwwButtonActionPerformed(java.awt.event.ActionEvent evt) {                                          
    URLGet urlTest = new URLGet();
    
    String url = urlTextField.getText();
    
    this.editPane.setText(urlTest.getSite(url));
}                                         

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

    URLGet urlTest = new URLGet();
    
    String url = urlTextField.getText();
    
    this.editPane.setText(urlTest.getSite(url));
}                                            

private void saveAsMenuActionPerformed(java.awt.event.ActionEvent evt) {                                           
    JFileChooser fileChooser = new JFileChooser();
        if (fileChooser.showSaveDialog(this) == JFileChooser.APPROVE_OPTION) {
            BufferedWriter writer;
        try {
            writer = new BufferedWriter(new FileWriter(fileChooser.getSelectedFile()));
            writer.write(this.editPane.getText());
            writer.close();
        }
        catch (IOException ioe) {
            this.editPane.setText("Sorry. Can't write file. Please contact with: mark2smartphone@gmail.com");
        }
    }
}                                          

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

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

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

    private void aboutActionPerformed(java.awt.event.ActionEvent evt) {                                      
        
    }                                     

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new TextEditorGUI().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify                     
    private javax.swing.JMenuItem about;
    private javax.swing.JButton clearButton;
    private javax.swing.JMenuItem clearMenu;
    private javax.swing.JButton copyButton;
    private javax.swing.JMenuItem copyMenu;
    private javax.swing.JButton cutButton;
    private javax.swing.JMenuItem cutMenu;
    private javax.swing.JMenu editMenu;
    private javax.swing.JEditorPane editPane;
    private javax.swing.JMenuItem exampleTextMenu;
    private javax.swing.JMenuItem find;
    private javax.swing.JMenuItem findReplace;
    private javax.swing.JMenuItem helpContents;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JPopupMenu.Separator jSeparator2;
    private javax.swing.JMenuItem loadMenu;
    private javax.swing.JButton pasteButton;
    private javax.swing.JMenuItem pasteMenu;
    private javax.swing.JMenuItem saveAsMenu;
    private javax.swing.JMenuItem saveMenu;
    private javax.swing.JButton selectAllButton;
    private javax.swing.JMenuItem selectAllMenu;
    private javax.swing.JTextField urlTextField;
    private javax.swing.JButton wwwButton;
    // End of variables declaration                   

}

Testing


Once the code is generated, the software program testing begins. Different testing methodologies are available to unravel the bugs that were committed during the previous phases. Different testing tools and methodologies are already available. Some companies build their own testing tools that are tailor made for their own development operations.

Maintenance

Software will definitely undergo change once it is delivered to the customer. There are many reasons for the change. Change could happen because of some unexpected input values into the system. In addition, the changes in the system could directly affect the software operations. The software should be developed to accommodate changes that could happen during the post implementation period.




 
                                                           SNAPSHOTS
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

 
 
 

 
 
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  
                                                        CONCLUSION
 
 
 
 
 
The MARK JTEXT  Editor Application is a menu driven application that performs text editing operations such as File, Edit, earch and Help operations.The MARK JTEXT editor is customized for a specific use that can determine what the user is editing and assist the user, often by completing programming terms and showing tooltips with relevant documentation. Many text editors for software developers include source code syntax highlighting and automatic indentation to make programs easier to read and write. The MARK JTEXT  editor lets the user select the name of an include file, function or variable, then jump to its definition. Some also allow for easy navigation back to the original section of code by storing the initial cursor location or by displaying the requested definition in a popup window or temporary buffer. Some editors implement this ability themselves, but often an auxiliary utility like ctags is used to locate the definitions.
 
 



Comments

Popular posts from this blog

ORACLE 9i practice solutions

Created by BCL easyConverter SDK 3 (HTML Version)

C Questions

C Questions
C Questions

Note : All the programs are tested under Turbo C/C++ compilers.
It is assumed that,
Programs run under DOS environment, The underlying machine is an x86 system, Program is compiled using Turbo C/C++ compiler.
The program output may depend on the information based on this assumptions (for example sizeof(int) == 2 may be assumed).
Predict the output or error(s) for the following:

void main()
{
int const * p=5; printf("%d",++(*p));
}
Answer:
Compiler error: Cannot modify a constant value.
Explanation:
p is a pointer to a "constant integer". But we tried to change the value of the "constant integer".
main()
{
char s[ ]="man"; int i;
for(i=0;s[ i ];i++)
printf("\n%c%c%c%c",s[ i ],*(s+i),*(i+s),i[s]);
}
Answer: mmmm
aaaa nnnn
Explanation

Zoho Interview | Set 1 (Advanced Programming Round)

Third Round: (Advanced Programming Round) Here they asked us to create a “Railway reservation system” and gave us 4 modules. The modules were:
    1. Booking
    2. Availability checking
    3. Cancellation
    4. Prepare chart
We were asked to create the modules for representing each data first and to continue with the implementation phase.

 My Solution :

#include<stdio.h>#include<conio.h>#include<stdlib.h>#include<string.h>#include<iostream.h>#include<time.h>#include<iomanip.h>#include<fstream.h>char f[10]="f";char s[10]="s";int addr,ad,flag,f1,d,m,i,amt;float tamt; class login {public:char id[100];char pass[100];char*password;void getid(){ cout<<"Enter your id:";gets(id); password=getpass("Enter the password:");strcpy(pass,password);}void displayid(){ cout<<"Id:";puts(id); cout<<"Password:";puts(pass);}}; class detail {public:in…