<repo_name>math4j/mathology<file_sep>/src/Vectors/src/vectors/resources/Keyboard.properties
input.text=
comma.text=,
add.text=Add
subtract.text=Subtract
multiply.text=Multiply
sc_tr_product.text=Scalar Triple Product
vc_tr_product.text=Vector Triple Product
dot_pr.text=Dot Product
cr_pr.text=Cross Product
vec_a.text=A
vec_b.text=B
vec_c.text=C
open_brace.text=(
close_brace.text=)
ok_button.text=OK
reset_button.text=Reset
<file_sep>/src/Calculus/build/classes/differentiation/resources/DifferentiationAboutBox.properties
title = About: ${Application.title} ${Application.version} 

closeAboutBox.Action.text = &Close

appDescLabel.text=<html>Calculus is a software toolkit used to perform all the desired calculus operations like: Differentiation & Integration..

versionLabel.text=Product Version\:

vendorLabel.text=Vendor\:
imageLabel.icon=c04.jpeg
<file_sep>/executor/nbproject/private/private.properties
compile.on.save=false
do.depend=false
do.jar=true
javac.debug=true
javadoc.preview=true
jaxws.endorsed.dir=G:\\Java\\NetBeans 6.5.1\\java2\\modules\\ext\\jaxws21\\api:G:\\Java\\NetBeans 6.5.1\\ide10\\modules\\ext\\jaxb\\api
user.properties.file=C:\\Documents and Settings\\Dinesh\\.netbeans\\6.5\\build.properties
<file_sep>/executor/src/mathworld/resources/Set_path.properties
path.text=
ok.text=OK
jLabel1.text=Enter the path of your jdk till bin folder:
Form.title=Set path
<file_sep>/src/Expression_Evaluator/src/calci_pg/Calci_pgView.java
/*
 * Calci_pgView.java
 */

package calci_pg;

import org.jdesktop.application.Action;
import org.jdesktop.application.ResourceMap;
import org.jdesktop.application.SingleFrameApplication;
import org.jdesktop.application.FrameView;
import org.jdesktop.application.TaskMonitor;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.Timer;
import javax.swing.Icon;
import javax.swing.JDialog;
import javax.swing.JFrame;

/**
 * The application's main frame.
 */
public class Calci_pgView extends FrameView {

    public Calci_pgView(SingleFrameApplication app) {
        super(app);

        initComponents();

        // status bar initialization - message timeout, idle icon and busy animation, etc
        ResourceMap resourceMap = getResourceMap();
        int messageTimeout = resourceMap.getInteger("StatusBar.messageTimeout");
        messageTimer = new Timer(messageTimeout, new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                statusMessageLabel.setText("");
            }
        });
        messageTimer.setRepeats(false);
        int busyAnimationRate = resourceMap.getInteger("StatusBar.busyAnimationRate");
        for (int i = 0; i < busyIcons.length; i++) {
            busyIcons[i] = resourceMap.getIcon("StatusBar.busyIcons[" + i + "]");
        }
        busyIconTimer = new Timer(busyAnimationRate, new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                busyIconIndex = (busyIconIndex + 1) % busyIcons.length;
                statusAnimationLabel.setIcon(busyIcons[busyIconIndex]);
            }
        });
        idleIcon = resourceMap.getIcon("StatusBar.idleIcon");
        statusAnimationLabel.setIcon(idleIcon);
        progressBar.setVisible(false);

        // connecting action tasks to status bar via TaskMonitor
        TaskMonitor taskMonitor = new TaskMonitor(getApplication().getContext());
        taskMonitor.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                String propertyName = evt.getPropertyName();
                if ("started".equals(propertyName)) {
                    if (!busyIconTimer.isRunning()) {
                        statusAnimationLabel.setIcon(busyIcons[0]);
                        busyIconIndex = 0;
                        busyIconTimer.start();
                    }
                    progressBar.setVisible(true);
                    progressBar.setIndeterminate(true);
                } else if ("done".equals(propertyName)) {
                    busyIconTimer.stop();
                    statusAnimationLabel.setIcon(idleIcon);
                    progressBar.setVisible(false);
                    progressBar.setValue(0);
                } else if ("message".equals(propertyName)) {
                    String text = (String)(evt.getNewValue());
                    statusMessageLabel.setText((text == null) ? "" : text);
                    messageTimer.restart();
                } else if ("progress".equals(propertyName)) {
                    int value = (Integer)(evt.getNewValue());
                    progressBar.setVisible(true);
                    progressBar.setIndeterminate(false);
                    progressBar.setValue(value);
                }
            }
        });
    }

    @Action
    public void showAboutBox() {
        if (aboutBox == null) {
            JFrame mainFrame = Calci_pgApp.getApplication().getMainFrame();
            aboutBox = new Calci_pgAboutBox(mainFrame);
            aboutBox.setLocationRelativeTo(mainFrame);
        }
        Calci_pgApp.getApplication().show(aboutBox);
    }

    /** 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">//GEN-BEGIN:initComponents
    private void initComponents() {

        mainPanel = new javax.swing.JPanel();
        input = new javax.swing.JTextField();
        plus_but = new javax.swing.JButton();
        nine_but = new javax.swing.JButton();
        one_but = new javax.swing.JButton();
        four_but = new javax.swing.JButton();
        seven_but = new javax.swing.JButton();
        decimal_but = new javax.swing.JButton();
        two_but = new javax.swing.JButton();
        five_but = new javax.swing.JButton();
        eight_but = new javax.swing.JButton();
        comma_but = new javax.swing.JButton();
        three_but = new javax.swing.JButton();
        divide_but = new javax.swing.JButton();
        mul_but = new javax.swing.JButton();
        six_but = new javax.swing.JButton();
        minus_but = new javax.swing.JButton();
        power_but = new javax.swing.JButton();
        ln_but = new javax.swing.JButton();
        log_but = new javax.swing.JButton();
        jButton19 = new javax.swing.JButton();
        atan_but = new javax.swing.JButton();
        acos_but = new javax.swing.JButton();
        asin_but = new javax.swing.JButton();
        jButton23 = new javax.swing.JButton();
        tan_but = new javax.swing.JButton();
        cos_but = new javax.swing.JButton();
        sine_but = new javax.swing.JButton();
        zero_but = new javax.swing.JButton();
        jButton28 = new javax.swing.JButton();
        jButton20 = new javax.swing.JButton();
        jButton21 = new javax.swing.JButton();
        clear_button = new javax.swing.JButton();
        backspace_button = new javax.swing.JButton();
        jButton1 = new javax.swing.JButton();
        output = new javax.swing.JLabel();
        menuBar = new javax.swing.JMenuBar();
        javax.swing.JMenu fileMenu = new javax.swing.JMenu();
        javax.swing.JMenuItem exitMenuItem = new javax.swing.JMenuItem();
        javax.swing.JMenu helpMenu = new javax.swing.JMenu();
        javax.swing.JMenuItem aboutMenuItem = new javax.swing.JMenuItem();
        statusPanel = new javax.swing.JPanel();
        javax.swing.JSeparator statusPanelSeparator = new javax.swing.JSeparator();
        statusMessageLabel = new javax.swing.JLabel();
        statusAnimationLabel = new javax.swing.JLabel();
        progressBar = new javax.swing.JProgressBar();

        mainPanel.setName("mainPanel"); // NOI18N

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(calci_pg.Calci_pgApp.class).getContext().getResourceMap(Calci_pgView.class);
        input.setText(resourceMap.getString("input.text")); // NOI18N
        input.setName("input"); // NOI18N

        plus_but.setText(resourceMap.getString("plus_but.text")); // NOI18N
        plus_but.setName("plus_but"); // NOI18N
        plus_but.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                plus_butMouseClicked(evt);
            }
        });

        nine_but.setText(resourceMap.getString("nine_but.text")); // NOI18N
        nine_but.setName("nine_but"); // NOI18N
        nine_but.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                nine_butMouseClicked(evt);
            }
        });

        one_but.setText(resourceMap.getString("one_but.text")); // NOI18N
        one_but.setName("one_but"); // NOI18N
        one_but.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                one_butMouseClicked(evt);
            }
        });

        four_but.setText(resourceMap.getString("four_but.text")); // NOI18N
        four_but.setName("four_but"); // NOI18N
        four_but.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                four_butMouseClicked(evt);
            }
        });

        seven_but.setText(resourceMap.getString("seven_but.text")); // NOI18N
        seven_but.setName("seven_but"); // NOI18N
        seven_but.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                seven_butMouseClicked(evt);
            }
        });

        decimal_but.setText(resourceMap.getString("decimal_but.text")); // NOI18N
        decimal_but.setName("decimal_but"); // NOI18N
        decimal_but.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                decimal_butMouseClicked(evt);
            }
        });

        two_but.setText(resourceMap.getString("two_but.text")); // NOI18N
        two_but.setName("two_but"); // NOI18N
        two_but.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                two_butMouseClicked(evt);
            }
        });

        five_but.setText(resourceMap.getString("five_but.text")); // NOI18N
        five_but.setName("five_but"); // NOI18N
        five_but.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                five_butMouseClicked(evt);
            }
        });

        eight_but.setText(resourceMap.getString("eight_but.text")); // NOI18N
        eight_but.setName("eight_but"); // NOI18N
        eight_but.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                eight_butMouseClicked(evt);
            }
        });

        comma_but.setText(resourceMap.getString("comma_but.text")); // NOI18N
        comma_but.setName("comma_but"); // NOI18N
        comma_but.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                comma_butMouseClicked(evt);
            }
        });

        three_but.setText(resourceMap.getString("three_but.text")); // NOI18N
        three_but.setName("three_but"); // NOI18N
        three_but.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                three_butMouseClicked(evt);
            }
        });

        divide_but.setText(resourceMap.getString("divide_but.text")); // NOI18N
        divide_but.setName("divide_but"); // NOI18N
        divide_but.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                divide_butMouseClicked(evt);
            }
        });

        mul_but.setText(resourceMap.getString("mul_but.text")); // NOI18N
        mul_but.setName("mul_but"); // NOI18N
        mul_but.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                mul_butMouseClicked(evt);
            }
        });

        six_but.setText(resourceMap.getString("six_but.text")); // NOI18N
        six_but.setName("six_but"); // NOI18N
        six_but.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                six_butMouseClicked(evt);
            }
        });

        minus_but.setText(resourceMap.getString("minus_but.text")); // NOI18N
        minus_but.setName("minus_but"); // NOI18N
        minus_but.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                minus_butMouseClicked(evt);
            }
        });

        power_but.setText(resourceMap.getString("power_but.text")); // NOI18N
        power_but.setName("power_but"); // NOI18N
        power_but.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                power_butMouseClicked(evt);
            }
        });

        ln_but.setText(resourceMap.getString("ln_but.text")); // NOI18N
        ln_but.setName("ln_but"); // NOI18N
        ln_but.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                ln_butMouseClicked(evt);
            }
        });

        log_but.setText(resourceMap.getString("log_but.text")); // NOI18N
        log_but.setName("log_but"); // NOI18N
        log_but.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                log_butMouseClicked(evt);
            }
        });

        jButton19.setText(resourceMap.getString("jButton19.text")); // NOI18N
        jButton19.setName("jButton19"); // NOI18N
        jButton19.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton19MouseClicked(evt);
            }
        });

        atan_but.setText(resourceMap.getString("atan_but.text")); // NOI18N
        atan_but.setName("atan_but"); // NOI18N
        atan_but.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                atan_butMouseClicked(evt);
            }
        });

        acos_but.setText(resourceMap.getString("acos_but.text")); // NOI18N
        acos_but.setName("acos_but"); // NOI18N
        acos_but.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                acos_butMouseClicked(evt);
            }
        });

        asin_but.setText(resourceMap.getString("asin_but.text")); // NOI18N
        asin_but.setName("asin_but"); // NOI18N
        asin_but.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                asin_butMouseClicked(evt);
            }
        });

        jButton23.setText(resourceMap.getString("jButton23.text")); // NOI18N
        jButton23.setName("jButton23"); // NOI18N
        jButton23.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton23MouseClicked(evt);
            }
        });

        tan_but.setText(resourceMap.getString("tan_but.text")); // NOI18N
        tan_but.setName("tan_but"); // NOI18N
        tan_but.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tan_butMouseClicked(evt);
            }
        });

        cos_but.setText(resourceMap.getString("cos_but.text")); // NOI18N
        cos_but.setName("cos_but"); // NOI18N
        cos_but.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                cos_butMouseClicked(evt);
            }
        });

        sine_but.setText(resourceMap.getString("sine_but.text")); // NOI18N
        sine_but.setName("sine_but"); // NOI18N
        sine_but.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                sine_butMouseClicked(evt);
            }
        });

        zero_but.setText(resourceMap.getString("zero_but.text")); // NOI18N
        zero_but.setName("zero_but"); // NOI18N
        zero_but.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                zero_butMouseClicked(evt);
            }
        });

        jButton28.setText(resourceMap.getString("jButton28.text")); // NOI18N
        jButton28.setName("jButton28"); // NOI18N
        jButton28.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton28MouseClicked(evt);
            }
        });

        jButton20.setText(resourceMap.getString("jButton20.text")); // NOI18N
        jButton20.setName("jButton20"); // NOI18N
        jButton20.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton20MouseClicked(evt);
            }
        });

        jButton21.setText(resourceMap.getString("jButton21.text")); // NOI18N
        jButton21.setName("jButton21"); // NOI18N
        jButton21.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton21MouseClicked(evt);
            }
        });

        clear_button.setText(resourceMap.getString("clear_button.text")); // NOI18N
        clear_button.setName("clear_button"); // NOI18N
        clear_button.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                clear_buttonMouseClicked(evt);
            }
        });

        backspace_button.setText(resourceMap.getString("backspace_button.text")); // NOI18N
        backspace_button.setName("backspace_button"); // NOI18N
        backspace_button.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                backspace_buttonMouseClicked(evt);
            }
        });

        jButton1.setText(resourceMap.getString("jButton1.text")); // NOI18N
        jButton1.setName("jButton1"); // NOI18N
        jButton1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton1MouseClicked(evt);
            }
        });

        output.setText(resourceMap.getString("output.text")); // NOI18N
        output.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        output.setName("output"); // NOI18N

        javax.swing.GroupLayout mainPanelLayout = new javax.swing.GroupLayout(mainPanel);
        mainPanel.setLayout(mainPanelLayout);
        mainPanelLayout.setHorizontalGroup(
            mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(mainPanelLayout.createSequentialGroup()
                .addGap(103, 103, 103)
                .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(mainPanelLayout.createSequentialGroup()
                        .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(clear_button, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(backspace_button, javax.swing.GroupLayout.DEFAULT_SIZE, 183, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jButton20, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jButton21, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jButton19, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jButton23, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 53, Short.MAX_VALUE)
                        .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(ln_but, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(log_but, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(power_but, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jButton28, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(45, 45, 45)
                        .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(seven_but, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(four_but, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(one_but, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(zero_but, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(mainPanelLayout.createSequentialGroup()
                                .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(five_but, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(two_but, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(eight_but, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(nine_but, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(six_but, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(three_but, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGroup(mainPanelLayout.createSequentialGroup()
                                .addComponent(decimal_but, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(comma_but, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGap(60, 60, 60)
                        .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(sine_but, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cos_but, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(tan_but, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 24, Short.MAX_VALUE)
                        .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(asin_but, javax.swing.GroupLayout.DEFAULT_SIZE, 72, Short.MAX_VALUE)
                            .addComponent(acos_but, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(atan_but, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGap(40, 40, 40)
                        .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(plus_but, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(minus_but, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(mul_but, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(divide_but, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(input, javax.swing.GroupLayout.PREFERRED_SIZE, 884, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(99, 99, 99))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, mainPanelLayout.createSequentialGroup()
                .addContainerGap(533, Short.MAX_VALUE)
                .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(496, 496, 496))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, mainPanelLayout.createSequentialGroup()
                .addContainerGap(220, Short.MAX_VALUE)
                .addComponent(output, javax.swing.GroupLayout.PREFERRED_SIZE, 735, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(131, 131, 131))
        );
        mainPanelLayout.setVerticalGroup(
            mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(mainPanelLayout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addComponent(input, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(mainPanelLayout.createSequentialGroup()
                        .addGap(50, 50, 50)
                        .addComponent(asin_but)
                        .addGap(18, 18, 18)
                        .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(cos_but)
                            .addComponent(acos_but))
                        .addGap(18, 18, 18)
                        .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(tan_but)
                            .addComponent(atan_but)))
                    .addGroup(mainPanelLayout.createSequentialGroup()
                        .addGap(49, 49, 49)
                        .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(mainPanelLayout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(backspace_button, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(clear_button, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(mainPanelLayout.createSequentialGroup()
                                .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(seven_but)
                                    .addComponent(nine_but)
                                    .addComponent(eight_but)
                                    .addComponent(log_but)
                                    .addComponent(jButton21)
                                    .addComponent(sine_but)
                                    .addComponent(plus_but))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(mainPanelLayout.createSequentialGroup()
                                        .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(four_but)
                                            .addComponent(five_but)
                                            .addComponent(six_but)
                                            .addComponent(ln_but)
                                            .addComponent(jButton20))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(one_but)
                                            .addComponent(two_but)
                                            .addComponent(three_but)
                                            .addComponent(power_but)
                                            .addComponent(jButton19))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(zero_but)
                                            .addComponent(decimal_but)
                                            .addComponent(comma_but)
                                            .addComponent(jButton28)
                                            .addComponent(jButton23)))
                                    .addGroup(mainPanelLayout.createSequentialGroup()
                                        .addComponent(minus_but)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(mul_but)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(divide_but)))))))
                .addGap(18, 18, 18)
                .addComponent(jButton1)
                .addGap(33, 33, 33)
                .addComponent(output, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(42, Short.MAX_VALUE))
        );

        menuBar.setName("menuBar"); // NOI18N

        fileMenu.setText(resourceMap.getString("fileMenu.text")); // NOI18N
        fileMenu.setName("fileMenu"); // NOI18N

        javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(calci_pg.Calci_pgApp.class).getContext().getActionMap(Calci_pgView.class, this);
        exitMenuItem.setAction(actionMap.get("quit")); // NOI18N
        exitMenuItem.setName("exitMenuItem"); // NOI18N
        fileMenu.add(exitMenuItem);

        menuBar.add(fileMenu);

        helpMenu.setText(resourceMap.getString("helpMenu.text")); // NOI18N
        helpMenu.setName("helpMenu"); // NOI18N

        aboutMenuItem.setAction(actionMap.get("showAboutBox")); // NOI18N
        aboutMenuItem.setName("aboutMenuItem"); // NOI18N
        helpMenu.add(aboutMenuItem);

        menuBar.add(helpMenu);

        statusPanel.setName("statusPanel"); // NOI18N

        statusPanelSeparator.setName("statusPanelSeparator"); // NOI18N

        statusMessageLabel.setName("statusMessageLabel"); // NOI18N

        statusAnimationLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        statusAnimationLabel.setName("statusAnimationLabel"); // NOI18N

        progressBar.setName("progressBar"); // NOI18N

        javax.swing.GroupLayout statusPanelLayout = new javax.swing.GroupLayout(statusPanel);
        statusPanel.setLayout(statusPanelLayout);
        statusPanelLayout.setHorizontalGroup(
            statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(statusPanelSeparator, javax.swing.GroupLayout.DEFAULT_SIZE, 1077, Short.MAX_VALUE)
            .addGroup(statusPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(statusMessageLabel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 907, Short.MAX_VALUE)
                .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(statusAnimationLabel)
                .addContainerGap())
        );
        statusPanelLayout.setVerticalGroup(
            statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(statusPanelLayout.createSequentialGroup()
                .addComponent(statusPanelSeparator, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(statusMessageLabel)
                    .addComponent(statusAnimationLabel)
                    .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(3, 3, 3))
        );

        setComponent(mainPanel);
        setMenuBar(menuBar);
        setStatusBar(statusPanel);
    }// </editor-fold>//GEN-END:initComponents

    private void plus_butMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_plus_butMouseClicked
        String temp = input.getText();
        temp = temp + "+";
        input.setText(temp);
    }//GEN-LAST:event_plus_butMouseClicked

    private void minus_butMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_minus_butMouseClicked
        String temp = input.getText();
        temp = temp + "-";
        input.setText(temp);        // TODO add your handling code here:
    }//GEN-LAST:event_minus_butMouseClicked

    private void mul_butMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_mul_butMouseClicked
        String temp = input.getText();
        temp = temp + "*";
        input.setText(temp);        // TODO add your handling code here:
    }//GEN-LAST:event_mul_butMouseClicked

    private void divide_butMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_divide_butMouseClicked
        String temp = input.getText();
        temp = temp + "/";
        input.setText(temp);        // TODO add your handling code here:
    }//GEN-LAST:event_divide_butMouseClicked

    private void nine_butMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_nine_butMouseClicked
         String temp = input.getText();
        temp = temp + "9";
        input.setText(temp);        // TODO add your handling code here:
    }//GEN-LAST:event_nine_butMouseClicked

    private void six_butMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_six_butMouseClicked
         String temp = input.getText();
        temp = temp + "6";
        input.setText(temp);        // TODO add your handling code here:
    }//GEN-LAST:event_six_butMouseClicked

    private void three_butMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_three_butMouseClicked
         String temp = input.getText();
        temp = temp + "3";
        input.setText(temp);        // TODO add your handling code here:
    }//GEN-LAST:event_three_butMouseClicked

    private void eight_butMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_eight_butMouseClicked
        String temp = input.getText();
        temp = temp + "8";
        input.setText(temp);        // TODO add your handling code here:
    }//GEN-LAST:event_eight_butMouseClicked

    private void five_butMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_five_butMouseClicked
        String temp = input.getText();
        temp = temp + "5";
        input.setText(temp);        // TODO add your handling code here:
    }//GEN-LAST:event_five_butMouseClicked

    private void two_butMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_two_butMouseClicked
        String temp = input.getText();
        temp = temp + "2";
        input.setText(temp);        // TODO add your handling code here:
    }//GEN-LAST:event_two_butMouseClicked

    private void decimal_butMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_decimal_butMouseClicked
        String temp = input.getText();
        temp = temp + ".";
        input.setText(temp);        // TODO add your handling code here:
    }//GEN-LAST:event_decimal_butMouseClicked

    private void seven_butMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_seven_butMouseClicked
        String temp = input.getText();
        temp = temp + "7";
        input.setText(temp);        // TODO add your handling code here:
    }//GEN-LAST:event_seven_butMouseClicked

    private void four_butMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_four_butMouseClicked
        String temp = input.getText();
        temp = temp + "4";
        input.setText(temp);        // TODO add your handling code here:
    }//GEN-LAST:event_four_butMouseClicked

    private void one_butMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_one_butMouseClicked
        String temp = input.getText();
        temp = temp + "1";
        input.setText(temp);        // TODO add your handling code here:
    }//GEN-LAST:event_one_butMouseClicked

    private void zero_butMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_zero_butMouseClicked
        String temp = input.getText();
        temp = temp + "0";
        input.setText(temp);        // TODO add your handling code here:
    }//GEN-LAST:event_zero_butMouseClicked

    private void sine_butMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_sine_butMouseClicked
        String temp = input.getText();
        temp = temp + "Sin(";
        input.setText(temp);        // TODO add your handling code here:
    }//GEN-LAST:event_sine_butMouseClicked

    private void cos_butMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_cos_butMouseClicked
        String temp = input.getText();
        temp = temp + "cos(";
        input.setText(temp);        // TODO add your handling code here:
    }//GEN-LAST:event_cos_butMouseClicked

    private void tan_butMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tan_butMouseClicked
        String temp = input.getText();
        temp = temp + "tan(";
        input.setText(temp);        // TODO add your handling code here:
    }//GEN-LAST:event_tan_butMouseClicked

    private void jButton23MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton23MouseClicked
        String temp = input.getText();
        temp = temp + ")";
        input.setText(temp);        // TODO add your handling code here:
    }//GEN-LAST:event_jButton23MouseClicked

    private void asin_butMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_asin_butMouseClicked
        String temp = input.getText();
        temp = temp + "asin(";
        input.setText(temp);        // TODO add your handling code here:
    }//GEN-LAST:event_asin_butMouseClicked

    private void acos_butMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_acos_butMouseClicked
        String temp = input.getText();
        temp = temp + "acos(";
        input.setText(temp);        // TODO add your handling code here:
    }//GEN-LAST:event_acos_butMouseClicked

    private void atan_butMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_atan_butMouseClicked
        String temp = input.getText();
        temp = temp + "atan(";
        input.setText(temp);        // TODO add your handling code here:
    }//GEN-LAST:event_atan_butMouseClicked

    private void jButton19MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton19MouseClicked
        String temp = input.getText();
        temp = temp + "(";
        input.setText(temp);        // TODO add your handling code here:
    }//GEN-LAST:event_jButton19MouseClicked

    private void log_butMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_log_butMouseClicked
        String temp = input.getText();
        temp = temp + "log(";
        input.setText(temp);        // TODO add your handling code here:
    }//GEN-LAST:event_log_butMouseClicked

    private void ln_butMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_ln_butMouseClicked
        String temp = input.getText();
        temp = temp + "ln(";
        input.setText(temp);        // TODO add your handling code here:
    }//GEN-LAST:event_ln_butMouseClicked

    private void power_butMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_power_butMouseClicked
        String temp = input.getText();
        temp = temp + "^";
        input.setText(temp);        // TODO add your handling code here:
    }//GEN-LAST:event_power_butMouseClicked

    private void jButton28MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton28MouseClicked
        String temp = input.getText();
        temp = temp + "exp(";
        input.setText(temp);        // TODO add your handling code here:
    }//GEN-LAST:event_jButton28MouseClicked

    private void jButton21MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton21MouseClicked
        String temp = input.getText();
        temp = temp + "]";
        input.setText(temp);        // TODO add your handling code here:
    }//GEN-LAST:event_jButton21MouseClicked

    private void jButton20MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton20MouseClicked
        String temp = input.getText();
        temp = temp + "[";
        input.setText(temp);        // TODO add your handling code here:
    }//GEN-LAST:event_jButton20MouseClicked

    private void clear_buttonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_clear_buttonMouseClicked
        input.setText(" ");        // TODO add your handling code here:
}//GEN-LAST:event_clear_buttonMouseClicked

    private void backspace_buttonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_backspace_buttonMouseClicked
      String s = input.getText();
      if(s.length() == 0 || s == null){
          return; //... what to do for null text or no text
      }
      s = new StringBuffer(s).substring(0, s.length()-1).toString();
      input.setText(s);
}//GEN-LAST:event_backspace_buttonMouseClicked

    private void jButton1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton1MouseClicked
        String msg = "[" + input.getText() + "]";
        Expression exp = new Expression(msg);
        if(exp.compile().equals(Expression.NO_ERROR_MSG)){
            output.setText(Double.toString(exp.getValue(msg, 0)));
        }
        else{
            output.setText("Incorrect input");
        }
    }//GEN-LAST:event_jButton1MouseClicked

    private void comma_butMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_comma_butMouseClicked
        String temp = input.getText();
        temp = temp + ",";
        input.setText(temp);    // TODO add your handling code here:
    }//GEN-LAST:event_comma_butMouseClicked

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton acos_but;
    private javax.swing.JButton asin_but;
    private javax.swing.JButton atan_but;
    private javax.swing.JButton backspace_button;
    private javax.swing.JButton clear_button;
    private javax.swing.JButton comma_but;
    private javax.swing.JButton cos_but;
    private javax.swing.JButton decimal_but;
    private javax.swing.JButton divide_but;
    private javax.swing.JButton eight_but;
    private javax.swing.JButton five_but;
    private javax.swing.JButton four_but;
    private javax.swing.JTextField input;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton19;
    private javax.swing.JButton jButton20;
    private javax.swing.JButton jButton21;
    private javax.swing.JButton jButton23;
    private javax.swing.JButton jButton28;
    private javax.swing.JButton ln_but;
    private javax.swing.JButton log_but;
    private javax.swing.JPanel mainPanel;
    private javax.swing.JMenuBar menuBar;
    private javax.swing.JButton minus_but;
    private javax.swing.JButton mul_but;
    private javax.swing.JButton nine_but;
    private javax.swing.JButton one_but;
    private javax.swing.JLabel output;
    private javax.swing.JButton plus_but;
    private javax.swing.JButton power_but;
    private javax.swing.JProgressBar progressBar;
    private javax.swing.JButton seven_but;
    private javax.swing.JButton sine_but;
    private javax.swing.JButton six_but;
    private javax.swing.JLabel statusAnimationLabel;
    private javax.swing.JLabel statusMessageLabel;
    private javax.swing.JPanel statusPanel;
    private javax.swing.JButton tan_but;
    private javax.swing.JButton three_but;
    private javax.swing.JButton two_but;
    private javax.swing.JButton zero_but;
    // End of variables declaration//GEN-END:variables

    private final Timer messageTimer;
    private final Timer busyIconTimer;
    private final Icon idleIcon;
    private final Icon[] busyIcons = new Icon[15];
    private int busyIconIndex = 0;

    private JDialog aboutBox;
}
<file_sep>/src/Vectors/src/vectors/resources/Select_a_Vector.properties
jLabel1.text=Select a Vector
jLabel2.text=Vector is
display_field.text=
select_ok_button.text=OK
display_ok_button.text=OK
<file_sep>/src/Non_Linear_Equation_Solver/src/polynomial_solver/Keyboard.java
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Keyboard.java
 *
 * Created on Aug 3, 2009, 9:50:55 PM
 */

package polynomial_solver;

import java.awt.event.KeyEvent;

/**
 *
 * @author Dinesh
 */
public class Keyboard extends javax.swing.JFrame {

    int key_position = 0;  //....... DEFAULT POSITION OF THE KEY
    String expression;//........ EXPRESSION.
    /** Creates new form Keyboard */
    public Keyboard() {
        initComponents();
        otherInitilization();
    }
    private void otherInitilization(){
        key_position = 0;
        expression = "";
    }

    /** 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">//GEN-BEGIN:initComponents
    private void initComponents() {

        backspace = new javax.swing.JButton();
        clear = new javax.swing.JButton();
        input_field = new javax.swing.JTextField();
        cosec = new javax.swing.JButton();
        asin = new javax.swing.JButton();
        acosec = new javax.swing.JButton();
        asec = new javax.swing.JButton();
        acos = new javax.swing.JButton();
        sec = new javax.swing.JButton();
        open_brace3 = new javax.swing.JButton();
        sin = new javax.swing.JButton();
        close_brace3 = new javax.swing.JButton();
        cos = new javax.swing.JButton();
        acot = new javax.swing.JButton();
        atan = new javax.swing.JButton();
        cot = new javax.swing.JButton();
        tan = new javax.swing.JButton();
        open_brace2 = new javax.swing.JButton();
        exp = new javax.swing.JButton();
        log = new javax.swing.JButton();
        close_brace2 = new javax.swing.JButton();
        multiply = new javax.swing.JButton();
        open_brace1 = new javax.swing.JButton();
        plus = new javax.swing.JButton();
        power = new javax.swing.JButton();
        divide = new javax.swing.JButton();
        minus = new javax.swing.JButton();
        close_brace1 = new javax.swing.JButton();
        space = new javax.swing.JButton();
        zero = new javax.swing.JButton();
        one = new javax.swing.JButton();
        four = new javax.swing.JButton();
        seven = new javax.swing.JButton();
        const_pi = new javax.swing.JButton();
        dot = new javax.swing.JButton();
        two = new javax.swing.JButton();
        five = new javax.swing.JButton();
        eight = new javax.swing.JButton();
        var_x = new javax.swing.JButton();
        const_e = new javax.swing.JButton();
        comma = new javax.swing.JButton();
        three = new javax.swing.JButton();
        six = new javax.swing.JButton();
        nine = new javax.swing.JButton();
        ok = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setName("Form"); // NOI18N

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(polynomial_solver.Polynomial_SolverApp.class).getContext().getResourceMap(Keyboard.class);
        backspace.setText(resourceMap.getString("backspace.text")); // NOI18N
        backspace.setName("backspace"); // NOI18N
        backspace.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                backspaceMouseClicked(evt);
            }
        });

        clear.setText(resourceMap.getString("clear.text")); // NOI18N
        clear.setName("clear"); // NOI18N
        clear.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                clearMouseClicked(evt);
            }
        });

        input_field.setFont(resourceMap.getFont("input_field.font")); // NOI18N
        input_field.setName("input_field"); // NOI18N
        input_field.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                input_fieldMouseClicked(evt);
            }
        });
        input_field.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                input_fieldKeyPressed(evt);
            }
            public void keyTyped(java.awt.event.KeyEvent evt) {
                input_fieldKeyTyped(evt);
            }
        });

        cosec.setText(resourceMap.getString("cosec.text")); // NOI18N
        cosec.setName("cosec"); // NOI18N
        cosec.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                cosecMouseClicked(evt);
            }
        });

        asin.setText(resourceMap.getString("asin.text")); // NOI18N
        asin.setName("asin"); // NOI18N
        asin.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                asinMouseClicked(evt);
            }
        });

        acosec.setText(resourceMap.getString("acosec.text")); // NOI18N
        acosec.setName("acosec"); // NOI18N
        acosec.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                acosecMouseClicked(evt);
            }
        });

        asec.setText(resourceMap.getString("asec.text")); // NOI18N
        asec.setName("asec"); // NOI18N
        asec.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                asecMouseClicked(evt);
            }
        });

        acos.setText(resourceMap.getString("acos.text")); // NOI18N
        acos.setName("acos"); // NOI18N
        acos.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                acosMouseClicked(evt);
            }
        });

        sec.setText(resourceMap.getString("sec.text")); // NOI18N
        sec.setName("sec"); // NOI18N
        sec.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                secMouseClicked(evt);
            }
        });

        open_brace3.setText(resourceMap.getString("open_brace3.text")); // NOI18N
        open_brace3.setName("open_brace3"); // NOI18N
        open_brace3.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                open_brace3MouseClicked(evt);
            }
        });

        sin.setText(resourceMap.getString("sin.text")); // NOI18N
        sin.setName("sin"); // NOI18N
        sin.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                sinMouseClicked(evt);
            }
        });

        close_brace3.setText(resourceMap.getString("close_brace3.text")); // NOI18N
        close_brace3.setName("close_brace3"); // NOI18N
        close_brace3.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                close_brace3MouseClicked(evt);
            }
        });

        cos.setText(resourceMap.getString("cos.text")); // NOI18N
        cos.setName("cos"); // NOI18N
        cos.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                cosMouseClicked(evt);
            }
        });

        acot.setText(resourceMap.getString("acot.text")); // NOI18N
        acot.setName("acot"); // NOI18N
        acot.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                acotMouseClicked(evt);
            }
        });

        atan.setText(resourceMap.getString("atan.text")); // NOI18N
        atan.setName("atan"); // NOI18N
        atan.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                atanMouseClicked(evt);
            }
        });

        cot.setText(resourceMap.getString("cot.text")); // NOI18N
        cot.setName("cot"); // NOI18N
        cot.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                cotMouseClicked(evt);
            }
        });

        tan.setText(resourceMap.getString("tan.text")); // NOI18N
        tan.setName("tan"); // NOI18N
        tan.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tanMouseClicked(evt);
            }
        });

        open_brace2.setText(resourceMap.getString("open_brace2.text")); // NOI18N
        open_brace2.setName("open_brace2"); // NOI18N
        open_brace2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                open_brace2MouseClicked(evt);
            }
        });

        exp.setText(resourceMap.getString("exp.text")); // NOI18N
        exp.setName("exp"); // NOI18N
        exp.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                expMouseClicked(evt);
            }
        });

        log.setText(resourceMap.getString("log.text")); // NOI18N
        log.setName("log"); // NOI18N
        log.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                logMouseClicked(evt);
            }
        });

        close_brace2.setText(resourceMap.getString("close_brace2.text")); // NOI18N
        close_brace2.setName("close_brace2"); // NOI18N
        close_brace2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                close_brace2MouseClicked(evt);
            }
        });

        multiply.setText(resourceMap.getString("multiply.text")); // NOI18N
        multiply.setName("multiply"); // NOI18N
        multiply.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                multiplyMouseClicked(evt);
            }
        });

        open_brace1.setText(resourceMap.getString("open_brace1.text")); // NOI18N
        open_brace1.setName("open_brace1"); // NOI18N
        open_brace1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                open_brace1MouseClicked(evt);
            }
        });

        plus.setText(resourceMap.getString("plus.text")); // NOI18N
        plus.setName("plus"); // NOI18N
        plus.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                plusMouseClicked(evt);
            }
        });

        power.setText(resourceMap.getString("power.text")); // NOI18N
        power.setName("power"); // NOI18N
        power.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                powerMouseClicked(evt);
            }
        });

        divide.setText(resourceMap.getString("divide.text")); // NOI18N
        divide.setName("divide"); // NOI18N
        divide.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                divideMouseClicked(evt);
            }
        });

        minus.setText(resourceMap.getString("minus.text")); // NOI18N
        minus.setName("minus"); // NOI18N
        minus.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                minusMouseClicked(evt);
            }
        });

        close_brace1.setText(resourceMap.getString("close_brace1.text")); // NOI18N
        close_brace1.setName("close_brace1"); // NOI18N
        close_brace1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                close_brace1MouseClicked(evt);
            }
        });

        space.setText(resourceMap.getString("space.text")); // NOI18N
        space.setName("space"); // NOI18N
        space.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                spaceMouseClicked(evt);
            }
        });

        zero.setText(resourceMap.getString("zero.text")); // NOI18N
        zero.setName("zero"); // NOI18N
        zero.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                zeroMouseClicked(evt);
            }
        });

        one.setText(resourceMap.getString("one.text")); // NOI18N
        one.setName("one"); // NOI18N
        one.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                oneMouseClicked(evt);
            }
        });

        four.setText(resourceMap.getString("four.text")); // NOI18N
        four.setName("four"); // NOI18N
        four.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                fourMouseClicked(evt);
            }
        });

        seven.setText(resourceMap.getString("seven.text")); // NOI18N
        seven.setName("seven"); // NOI18N
        seven.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                sevenMouseClicked(evt);
            }
        });

        const_pi.setText(resourceMap.getString("const_pi.text")); // NOI18N
        const_pi.setName("const_pi"); // NOI18N
        const_pi.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                const_piMouseClicked(evt);
            }
        });

        dot.setText(resourceMap.getString("dot.text")); // NOI18N
        dot.setName("dot"); // NOI18N
        dot.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                dotMouseClicked(evt);
            }
        });

        two.setText(resourceMap.getString("two.text")); // NOI18N
        two.setName("two"); // NOI18N
        two.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                twoMouseClicked(evt);
            }
        });

        five.setText(resourceMap.getString("five.text")); // NOI18N
        five.setName("five"); // NOI18N
        five.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                fiveMouseClicked(evt);
            }
        });

        eight.setText(resourceMap.getString("eight.text")); // NOI18N
        eight.setName("eight"); // NOI18N
        eight.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                eightMouseClicked(evt);
            }
        });

        var_x.setText(resourceMap.getString("var_x.text")); // NOI18N
        var_x.setName("var_x"); // NOI18N
        var_x.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                var_xMouseClicked(evt);
            }
        });

        const_e.setText(resourceMap.getString("const_e.text")); // NOI18N
        const_e.setName("const_e"); // NOI18N
        const_e.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                const_eMouseClicked(evt);
            }
        });

        comma.setText(resourceMap.getString("comma.text")); // NOI18N
        comma.setName("comma"); // NOI18N
        comma.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                commaMouseClicked(evt);
            }
        });

        three.setText(resourceMap.getString("three.text")); // NOI18N
        three.setName("three"); // NOI18N
        three.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                threeMouseClicked(evt);
            }
        });

        six.setText(resourceMap.getString("six.text")); // NOI18N
        six.setName("six"); // NOI18N
        six.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                sixMouseClicked(evt);
            }
        });

        nine.setText(resourceMap.getString("nine.text")); // NOI18N
        nine.setName("nine"); // NOI18N
        nine.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                nineMouseClicked(evt);
            }
        });

        ok.setText(resourceMap.getString("ok.text")); // NOI18N
        ok.setName("ok"); // NOI18N
        ok.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                okMouseClicked(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 792, Short.MAX_VALUE)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(backspace)
                        .addGap(32, 32, 32)
                        .addComponent(clear))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(81, 81, 81)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(input_field, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 701, Short.MAX_VALUE)
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                            .addComponent(cosec, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(asin, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(acosec, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                        .addGap(18, 18, 18)
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                            .addComponent(asec, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(acos, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(sec, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                            .addComponent(open_brace3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(sin, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 67, Short.MAX_VALUE))
                                        .addGap(18, 18, 18)
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(close_brace3, javax.swing.GroupLayout.DEFAULT_SIZE, 56, Short.MAX_VALUE)
                                            .addComponent(cos, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                                .addGap(18, 18, 18)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                        .addComponent(acot, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addComponent(atan, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addComponent(cot, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addComponent(tan, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                    .addComponent(open_brace2, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(21, 21, 21)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup()
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(exp, javax.swing.GroupLayout.DEFAULT_SIZE, 59, Short.MAX_VALUE)
                                            .addComponent(log, javax.swing.GroupLayout.DEFAULT_SIZE, 59, Short.MAX_VALUE)
                                            .addComponent(close_brace2, javax.swing.GroupLayout.DEFAULT_SIZE, 59, Short.MAX_VALUE))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                            .addComponent(multiply, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(open_brace1, javax.swing.GroupLayout.DEFAULT_SIZE, 57, Short.MAX_VALUE)
                                            .addComponent(plus, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                        .addGap(22, 22, 22)
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                            .addComponent(power, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(divide, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(minus, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addGroup(layout.createSequentialGroup()
                                                .addComponent(close_brace1, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addGap(2, 2, 2))))
                                    .addComponent(space, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(16, 16, 16)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addComponent(zero, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(one, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(four, javax.swing.GroupLayout.Alignment.LEADING, 0, 0, Short.MAX_VALUE)
                                    .addComponent(seven, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(const_pi, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(7, 7, 7)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addComponent(dot, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(two, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(five, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(eight, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(var_x, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(18, 18, 18)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(const_e, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(comma, 0, 0, Short.MAX_VALUE)
                                    .addComponent(three, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(six, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(nine, javax.swing.GroupLayout.DEFAULT_SIZE, 57, Short.MAX_VALUE))
                                .addGap(48, 48, 48)))))
                .addContainerGap())
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(358, Short.MAX_VALUE)
                .addComponent(ok, javax.swing.GroupLayout.PREFERRED_SIZE, 72, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(362, 362, 362))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 413, Short.MAX_VALUE)
            .addGroup(layout.createSequentialGroup()
                .addGap(77, 77, 77)
                .addComponent(input_field, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(clear)
                    .addComponent(backspace))
                .addGap(6, 6, 6)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(open_brace3)
                    .addComponent(const_e)
                    .addComponent(var_x)
                    .addComponent(const_pi)
                    .addComponent(close_brace3)
                    .addComponent(open_brace2)
                    .addComponent(close_brace2)
                    .addComponent(open_brace1)
                    .addComponent(close_brace1))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(sin)
                    .addComponent(cos)
                    .addComponent(tan)
                    .addComponent(plus)
                    .addComponent(seven)
                    .addComponent(eight)
                    .addComponent(nine)
                    .addComponent(minus)
                    .addComponent(log))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cosec)
                    .addComponent(sec)
                    .addComponent(cot)
                    .addComponent(divide)
                    .addComponent(four)
                    .addComponent(five)
                    .addComponent(six)
                    .addComponent(multiply)
                    .addComponent(exp))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(asin)
                    .addComponent(acos)
                    .addComponent(atan)
                    .addComponent(power)
                    .addComponent(one)
                    .addComponent(two)
                    .addComponent(three))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(acosec)
                    .addComponent(asec)
                    .addComponent(acot)
                    .addComponent(zero)
                    .addComponent(dot)
                    .addComponent(comma)
                    .addComponent(space))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 34, Short.MAX_VALUE)
                .addComponent(ok)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void displayMe(String str, int offset){
        expression = input_field.getText();

        if(key_position == 0){
            expression = str + expression;
        }
        else if(key_position == expression.length()){
            expression = expression + str;
        }
        else{
            String temp = new String(expression);
            String temp_1 = temp.substring(key_position);

            temp = new String(temp.substring(0, key_position));

            temp += str;
            temp += temp_1;
            expression = temp;
        }

        key_position += offset;
        input_field.setText(expression+"");
    }
    private void backspaceMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_backspaceMouseClicked
        if(key_position > 0){
            StringBuffer temp = new StringBuffer(expression);

            temp.deleteCharAt(key_position-1);
            expression = temp.toString();

            input_field.setText(expression);
            --key_position;
        }
}//GEN-LAST:event_backspaceMouseClicked

    private void clearMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_clearMouseClicked
        input_field.setText("");
        key_position = 0;
}//GEN-LAST:event_clearMouseClicked

    private void input_fieldMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_input_fieldMouseClicked
        key_position = expression.length();
    }//GEN-LAST:event_input_fieldMouseClicked

    private void input_fieldKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_input_fieldKeyPressed
        int key = evt.getKeyCode();

        switch(key){
            case KeyEvent.VK_LEFT:
                if(key_position >0){
                    --key_position;
                }
                break;

            case KeyEvent.VK_RIGHT:
                if(key_position < input_field.getText().length()){
                    ++key_position;
                }
                break;
        }
    }//GEN-LAST:event_input_fieldKeyPressed

    private void input_fieldKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_input_fieldKeyTyped
        ++key_position;
}//GEN-LAST:event_input_fieldKeyTyped

    private void cosecMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_cosecMouseClicked
        displayMe("Cosec(", 6);
}//GEN-LAST:event_cosecMouseClicked

    private void asinMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_asinMouseClicked
        displayMe("ASin(", 5);
}//GEN-LAST:event_asinMouseClicked

    private void acosecMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_acosecMouseClicked
        displayMe("ACosec(", 7);
}//GEN-LAST:event_acosecMouseClicked

    private void asecMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_asecMouseClicked
        displayMe("ASec(", 5);
}//GEN-LAST:event_asecMouseClicked

    private void acosMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_acosMouseClicked
        displayMe("ACos(", 5);
}//GEN-LAST:event_acosMouseClicked

    private void secMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_secMouseClicked
        displayMe("Sec(", 4);
}//GEN-LAST:event_secMouseClicked

    private void open_brace3MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_open_brace3MouseClicked
        displayMe("{", 1);
}//GEN-LAST:event_open_brace3MouseClicked

    private void sinMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_sinMouseClicked
        displayMe("Sin(", 4);
}//GEN-LAST:event_sinMouseClicked

    private void close_brace3MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_close_brace3MouseClicked
        displayMe("}", 1);
}//GEN-LAST:event_close_brace3MouseClicked

    private void cosMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_cosMouseClicked
        displayMe("Cos(", 4);
}//GEN-LAST:event_cosMouseClicked

    private void acotMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_acotMouseClicked
        displayMe("ACot(", 5);
}//GEN-LAST:event_acotMouseClicked

    private void atanMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_atanMouseClicked
        displayMe("ATan(", 5);
}//GEN-LAST:event_atanMouseClicked

    private void cotMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_cotMouseClicked
        displayMe("Cot(", 4);
}//GEN-LAST:event_cotMouseClicked

    private void tanMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tanMouseClicked
        displayMe("Tan(", 4);
}//GEN-LAST:event_tanMouseClicked

    private void open_brace2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_open_brace2MouseClicked
        displayMe("[", 1);
}//GEN-LAST:event_open_brace2MouseClicked

    private void expMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_expMouseClicked
        displayMe("Exp(", 4);
}//GEN-LAST:event_expMouseClicked

    private void logMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_logMouseClicked
        displayMe("Log(", 4);
}//GEN-LAST:event_logMouseClicked

    private void close_brace2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_close_brace2MouseClicked
        displayMe("]", 1);
}//GEN-LAST:event_close_brace2MouseClicked

    private void multiplyMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_multiplyMouseClicked
        displayMe("*", 1);
}//GEN-LAST:event_multiplyMouseClicked

    private void open_brace1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_open_brace1MouseClicked
        displayMe("(", 1);
}//GEN-LAST:event_open_brace1MouseClicked

    private void plusMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_plusMouseClicked
        displayMe("+", 1);
}//GEN-LAST:event_plusMouseClicked

    private void powerMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_powerMouseClicked
        displayMe("^", 1);
}//GEN-LAST:event_powerMouseClicked

    private void divideMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_divideMouseClicked
        displayMe("/", 1);
}//GEN-LAST:event_divideMouseClicked

    private void minusMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_minusMouseClicked
        displayMe("-", 1);
}//GEN-LAST:event_minusMouseClicked

    private void close_brace1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_close_brace1MouseClicked
        displayMe(")", 1);
}//GEN-LAST:event_close_brace1MouseClicked

    private void spaceMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_spaceMouseClicked
        displayMe(" ", 1);
}//GEN-LAST:event_spaceMouseClicked

    private void zeroMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_zeroMouseClicked
        displayMe("0", 1);
}//GEN-LAST:event_zeroMouseClicked

    private void oneMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_oneMouseClicked
        displayMe("1", 1);
}//GEN-LAST:event_oneMouseClicked

    private void fourMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_fourMouseClicked
        displayMe("4", 1);
}//GEN-LAST:event_fourMouseClicked

    private void sevenMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_sevenMouseClicked
        displayMe("7", 1);
}//GEN-LAST:event_sevenMouseClicked

    private void const_piMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_const_piMouseClicked
        displayMe("PI", 2);
}//GEN-LAST:event_const_piMouseClicked

    private void dotMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_dotMouseClicked
        displayMe(".", 1);
}//GEN-LAST:event_dotMouseClicked

    private void twoMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_twoMouseClicked
        displayMe("2", 1);
}//GEN-LAST:event_twoMouseClicked

    private void fiveMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_fiveMouseClicked
        displayMe("5", 1);
}//GEN-LAST:event_fiveMouseClicked

    private void eightMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_eightMouseClicked
        displayMe("8", 1);
}//GEN-LAST:event_eightMouseClicked

    private void var_xMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_var_xMouseClicked
        displayMe("x", 1);
}//GEN-LAST:event_var_xMouseClicked

    private void const_eMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_const_eMouseClicked
        displayMe("E", 1);
}//GEN-LAST:event_const_eMouseClicked

    private void commaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_commaMouseClicked
        displayMe(",", 1);
}//GEN-LAST:event_commaMouseClicked

    private void threeMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_threeMouseClicked
        displayMe("3", 1);
}//GEN-LAST:event_threeMouseClicked

    private void sixMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_sixMouseClicked
        displayMe("6", 1);
}//GEN-LAST:event_sixMouseClicked

    private void nineMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_nineMouseClicked
        displayMe("9", 1);
}//GEN-LAST:event_nineMouseClicked

    private void okMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_okMouseClicked
        this.setVisible(false);
        Polynomial_SolverView.valueEntry(input_field.getText());
}//GEN-LAST:event_okMouseClicked

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

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton acos;
    private javax.swing.JButton acosec;
    private javax.swing.JButton acot;
    private javax.swing.JButton asec;
    private javax.swing.JButton asin;
    private javax.swing.JButton atan;
    private javax.swing.JButton backspace;
    private javax.swing.JButton clear;
    private javax.swing.JButton close_brace1;
    private javax.swing.JButton close_brace2;
    private javax.swing.JButton close_brace3;
    private javax.swing.JButton comma;
    private javax.swing.JButton const_e;
    private javax.swing.JButton const_pi;
    private javax.swing.JButton cos;
    private javax.swing.JButton cosec;
    private javax.swing.JButton cot;
    private javax.swing.JButton divide;
    private javax.swing.JButton dot;
    private javax.swing.JButton eight;
    private javax.swing.JButton exp;
    private javax.swing.JButton five;
    private javax.swing.JButton four;
    private javax.swing.JTextField input_field;
    private javax.swing.JButton log;
    private javax.swing.JButton minus;
    private javax.swing.JButton multiply;
    private javax.swing.JButton nine;
    private javax.swing.JButton ok;
    private javax.swing.JButton one;
    private javax.swing.JButton open_brace1;
    private javax.swing.JButton open_brace2;
    private javax.swing.JButton open_brace3;
    private javax.swing.JButton plus;
    private javax.swing.JButton power;
    private javax.swing.JButton sec;
    private javax.swing.JButton seven;
    private javax.swing.JButton sin;
    private javax.swing.JButton six;
    private javax.swing.JButton space;
    private javax.swing.JButton tan;
    private javax.swing.JButton three;
    private javax.swing.JButton two;
    private javax.swing.JButton var_x;
    private javax.swing.JButton zero;
    // End of variables declaration//GEN-END:variables

}
<file_sep>/src/Matrix_Solver/src/priya1/Incompatibility_Exception.java
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package priya1;

/**
 *
 * @author Mahesh
 * @since June 29, 2009
 */
public class Incompatibility_Exception extends java.lang.Exception {
   public Incompatibility_Exception(){
   }

   public void display(){
       System.err.println("The operation to be performed is incompatible");
   }
}<file_sep>/src/Vectors/src/vectors/Vector_Storage.java
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package vectors;

//import java.util.ArrayList;
/**
 *
 * @author Dinesh
 */
public class Vector_Storage {
    private static Vector vectorA = new Vector("A");
    private static Vector vectorB = new Vector("B");
    private static Vector vectorC = new Vector("C");

    public static void setVector(Vector v, String name){
        if(name.equalsIgnoreCase("A")){
            vectorA = new Vector(v, name);
        }
        else if(name.equalsIgnoreCase("B")){
            vectorB = new Vector(v, name);
        }
        else if(name.equalsIgnoreCase("C")){
            vectorC = new Vector(v, name);
        }
    }

    public static void removeVector(String name){
        Vector temp = new Vector(name);
        setVector(temp, name);
    }

    public static String display(String name){
        if(name.equalsIgnoreCase("A")){
            return vectorA.toString();
        }
        else if(name.equalsIgnoreCase("B")){
            return vectorB.toString();
        }
        else if(name.equalsIgnoreCase("C")){
            return vectorC.toString();
        }
        //..... DUMMY CODE...
        return "Billa";
    }

    public static Vector getVector(String name){
        if(name.equalsIgnoreCase("A")){
            return vectorA;
        }
        else if(name.equalsIgnoreCase("B")){
            return vectorB;
        }
        else if(name.equalsIgnoreCase("C")){
            return vectorC;
        }
        //..... DUMMY CODE...
        return new Vector("A");
    }
}
