applet giving error

i had made a GUI using JFrame, now I have converted it to an applet. when running the applet through applerviewer, it runs fine, but when put on server, the browser say that failed to load applet :( ... what cud be the problem?

the JFrame code is :

publicclass MainPanelextends javax.swing.JFrame{

String copy_text ="";

String cut_text ="";

String delete_text ="";

String textmsg ="";

String outmsg ="";

int getcaretposition = 0;

java.awt.FileDialog fdialog1,fdialog2;

File openfile;

/** Creates new form MainPanel */

public MainPanel(){

initComponents();

fdialog1=new FileDialog(this,"Open ...", FileDialog.LOAD);

fdialog2=new FileDialog(this,"Save As ...", FileDialog.SAVE);

}

/** 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.

*/

privatevoid initComponents(){//GEN-BEGIN:initComponents

jFrame1 =new javax.swing.JFrame();

jMenuBar2 =new javax.swing.JMenuBar();

jMenu1 =new javax.swing.JMenu();

jSplitPane1 =new javax.swing.JSplitPane();

jSplitPane2 =new javax.swing.JSplitPane();

jToolBar1 =new javax.swing.JToolBar();

copyJButton =new javax.swing.JButton();

cutJButton =new javax.swing.JButton();

pasteJButton =new javax.swing.JButton();

delJButton =new javax.swing.JButton();

saveJButton =new javax.swing.JButton();

jScrollPane1 =new javax.swing.JScrollPane();

fileTextArea =new javax.swing.JTextArea();

jScrollPane2 =new javax.swing.JScrollPane();

jTextArea1 =new javax.swing.JTextArea();

jTextArea1.setEditable(false);

jMenuBar1 =new javax.swing.JMenuBar();

fileMenu =new javax.swing.JMenu();

newMenuItem =new javax.swing.JMenuItem();

openMenuItem =new javax.swing.JMenuItem();

saveMenuItem =new javax.swing.JMenuItem();

saveasMenuItem =new javax.swing.JMenuItem();

jSeparator1 =new javax.swing.JSeparator();

quitMenuItem =new javax.swing.JMenuItem();

editMenu =new javax.swing.JMenu();

copyMenuItem =new javax.swing.JMenuItem();

cutMenuItem =new javax.swing.JMenuItem();

pasteMenuItem =new javax.swing.JMenuItem();

delMenuItem =new javax.swing.JMenuItem();

jSeparator2 =new javax.swing.JSeparator();

findMenuItem =new javax.swing.JMenuItem();

findnMenuItem =new javax.swing.JMenuItem();

repMenuItem =new javax.swing.JMenuItem();

intpMenu =new javax.swing.JMenu();

execMenuItem =new javax.swing.JMenuItem();

haltMenuItem =new javax.swing.JMenuItem();

comMenu =new javax.swing.JMenu();

transMenuItem =new javax.swing.JMenuItem();

optMenu =new javax.swing.JMenu();

gotoMenuItem =new javax.swing.JMenuItem();

selectMenuItem =new javax.swing.JMenuItem();

jSeparator3 =new javax.swing.JSeparator();

bgMenuItem =new javax.swing.JMenuItem();

help =new javax.swing.JMenu();

contMenuItem =new javax.swing.JMenuItem();

jSeparator4 =new javax.swing.JSeparator();

abtMenuItem =new javax.swing.JMenuItem();

jMenu1.setText("Menu");

jMenuBar2.add(jMenu1);

jFrame1.setJMenuBar(jMenuBar2);

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

setTitle("CAL Interpreter");

jSplitPane1.setDividerLocation(250);

jSplitPane1.setDividerSize(6);

jSplitPane1.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);

jSplitPane2.setDividerLocation(30);

jSplitPane2.setDividerSize(1);

jSplitPane2.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);

copyJButton.setIcon(new javax.swing.ImageIcon("./pics/copy.png"));

copyJButton.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

copyJButtonActionPerformed(evt);

}

});

jToolBar1.add(copyJButton);

cutJButton.setIcon(new javax.swing.ImageIcon("./pics/cut.png"));

cutJButton.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

cutJButtonActionPerformed(evt);

}

});

jToolBar1.add(cutJButton);

pasteJButton.setIcon(new javax.swing.ImageIcon("./pics/paste.png"));

pasteJButton.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

pasteJButtonActionPerformed(evt);

}

});

jToolBar1.add(pasteJButton);

delJButton.setIcon(new javax.swing.ImageIcon("./pics/del.png"));

delJButton.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

delJButtonActionPerformed(evt);

}

});

jToolBar1.add(delJButton);

saveJButton.setIcon(new javax.swing.ImageIcon("./pics/save.png"));

saveJButton.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

saveJButtonActionPerformed(evt);

}

});

jToolBar1.add(saveJButton);

jSplitPane2.setLeftComponent(jToolBar1);

jScrollPane1.setViewportView(fileTextArea);

jSplitPane2.setRightComponent(jScrollPane1);

jSplitPane1.setLeftComponent(jSplitPane2);

jScrollPane2.setViewportView(jTextArea1);

jSplitPane1.setRightComponent(jScrollPane2);

getContentPane().add(jSplitPane1, java.awt.BorderLayout.CENTER);

fileMenu.setText("File");

newMenuItem.setText("New");

newMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

newMenuItemActionPerformed(evt);

}

});

fileMenu.add(newMenuItem);

openMenuItem.setText("Open ...");

openMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

openMenuItemActionPerformed(evt);

}

});

fileMenu.add(openMenuItem);

saveMenuItem.setText("Save");

saveMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

saveMenuItemActionPerformed(evt);

}

});

fileMenu.add(saveMenuItem);

saveasMenuItem.setText("Save As ...");

saveasMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

saveasMenuItemActionPerformed(evt);

}

});

fileMenu.add(saveasMenuItem);

fileMenu.add(jSeparator1);

quitMenuItem.setText("Quit");

quitMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

quitMenuItemActionPerformed(evt);

}

});

fileMenu.add(quitMenuItem);

jMenuBar1.add(fileMenu);

editMenu.setText("Edit");

copyMenuItem.setText("Copy");

copyMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

copyMenuItemActionPerformed(evt);

}

});

editMenu.add(copyMenuItem);

cutMenuItem.setText("Cut");

cutMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

cutMenuItemActionPerformed(evt);

}

});

editMenu.add(cutMenuItem);

pasteMenuItem.setText("Paste");

pasteMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

pasteMenuItemActionPerformed(evt);

}

});

editMenu.add(pasteMenuItem);

delMenuItem.setText("Delete");

delMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

delMenuItemActionPerformed(evt);

}

});

editMenu.add(delMenuItem);

editMenu.add(jSeparator2);

findMenuItem.setText("Find ...");

findMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

findMenuItemActionPerformed(evt);

}

});

editMenu.add(findMenuItem);

findnMenuItem.setText("Find Next");

findnMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

findnMenuItemActionPerformed(evt);

}

});

editMenu.add(findnMenuItem);

repMenuItem.setText("Replace ...");

repMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

repMenuItemActionPerformed(evt);

}

});

editMenu.add(repMenuItem);

jMenuBar1.add(editMenu);

intpMenu.setText("Interpreter");

execMenuItem.setText("Execute");

execMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

execMenuItemActionPerformed(evt);

}

});

intpMenu.add(execMenuItem);

haltMenuItem.setText("Halt");

haltMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

haltMenuItemActionPerformed(evt);

}

});

intpMenu.add(haltMenuItem);

jMenuBar1.add(intpMenu);

comMenu.setText("Compiler");

transMenuItem.setText("Translate");

transMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

transMenuItemActionPerformed(evt);

}

});

comMenu.add(transMenuItem);

jMenuBar1.add(comMenu);

optMenu.setText("Options");

gotoMenuItem.setText("Go to line ...");

gotoMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

gotoMenuItemActionPerformed(evt);

}

});

optMenu.add(gotoMenuItem);

selectMenuItem.setText("Select All");

selectMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

selectMenuItemActionPerformed(evt);

}

});

optMenu.add(selectMenuItem);

optMenu.add(jSeparator3);

bgMenuItem.setText("Set BG Color");

bgMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

bgMenuItemActionPerformed(evt);

}

});

optMenu.add(bgMenuItem);

jMenuBar1.add(optMenu);

help.setText("Help");

contMenuItem.setText("Help Contents");

contMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

contMenuItemActionPerformed(evt);

}

});

help.add(contMenuItem);

help.add(jSeparator4);

abtMenuItem.setText("About ...");

abtMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

abtMenuItemActionPerformed(evt);

}

});

help.add(abtMenuItem);

jMenuBar1.add(help);

setJMenuBar(jMenuBar1);

pack();

}//GEN-END:initComponents

privatevoid transMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_transMenuItemActionPerformed

// TODO add your handling code here:

try

{

/*Process p = Runtime.getRuntime().exec("java Main "+openfile.getName());

p.destroy();

Process p1 = Runtime.getRuntime().exec("java editor progInC.c");*/

BufferedWriter bw =new BufferedWriter(new FileWriter("make.sh"));

bw.write("java Main "+openfile.getName(), 0, 10+(openfile.getName()).length());

bw.newLine();

bw.write("java editor progInC.c");

bw.close();

Process p = Runtime.getRuntime().exec("sh make.sh");

BufferedReader br =new BufferedReader(new FileReader("prog.c"));

outmsg = br.readLine();

//System.out.println("here");

while(outmsg!=null)

{

jTextArea1.append(outmsg);

jTextArea1.append("\n");

outmsg = br.readLine();

}

br.close();

}

catch(IOException e)

{

}

}//GEN-LAST:event_transMenuItemActionPerformed

privatevoid delJButtonActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_delJButtonActionPerformed

// TODO add your handling code here:

delete_text = fileTextArea.getSelectedText();

int deleteindex = fileTextArea.getText().indexOf(delete_text);

fileTextArea.replaceRange("",deleteindex , deleteindex + delete_text.length());

}//GEN-LAST:event_delJButtonActionPerformed

privatevoid abtMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_abtMenuItemActionPerformed

// TODO add your handling code here:

}//GEN-LAST:event_abtMenuItemActionPerformed

privatevoid contMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_contMenuItemActionPerformed

// TODO add your handling code here:

}//GEN-LAST:event_contMenuItemActionPerformed

privatevoid haltMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_haltMenuItemActionPerformed

// TODO add your handling code here:

}//GEN-LAST:event_haltMenuItemActionPerformed

privatevoid execMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_execMenuItemActionPerformed

// TODO add your handling code here:

//MainProg mp = new MainProg();

//mp.execute(openfile);

//String s = JOptionPane.showInputDialog("enter something");

// jTextArea1.append("s = " + s);

test.add(g);

}//GEN-LAST:event_execMenuItemActionPerformed

privatevoid bgMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_bgMenuItemActionPerformed

// TODO add your handling code here:

Color bgcolor = JColorChooser.showDialog(fileTextArea,"Choose background color", getBackground());

//Show a model color chooser dialog and blocks until the dialog is hidden

if(bgcolor !=null)

fileTextArea.setBackground(bgcolor);

}//GEN-LAST:event_bgMenuItemActionPerformed

privatevoid selectMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_selectMenuItemActionPerformed

// TODO add your handling code here:

String str = fileTextArea.getText();//get the text that is present by this component

fileTextArea.setSelectionStart(0);

fileTextArea.setSelectionEnd(str.length());

}//GEN-LAST:event_selectMenuItemActionPerformed

privatevoid gotoMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_gotoMenuItemActionPerformed

// TODO add your handling code here:

try

{

Element root = fileTextArea.getDocument().getDefaultRootElement();

Element paragraph=root.getElement(Integer.parseInt(JOptionPane.showInputDialog(null,"Go to line")));

fileTextArea.setCaretPosition(paragraph.getStartOffset()-1);

}

catch(NullPointerException npe)

{

JOptionPane.showMessageDialog(null,"Invalid line number");

}

}//GEN-LAST:event_gotoMenuItemActionPerformed

privatevoid quitMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_quitMenuItemActionPerformed

// TODO add your handling code here:

System.exit(0);

}//GEN-LAST:event_quitMenuItemActionPerformed

privatevoid saveasMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_saveasMenuItemActionPerformed

// TODO add your handling code here:

try

{

fdialog2.setVisible(true);

FileOutputStream fos1 =new FileOutputStream(fdialog2.getDirectory()+fdialog2.getFile());

fos1.write(fileTextArea.getText().getBytes());

fos1.close();

}

catch(Exception e)

{

System.out.println(e);

}

}//GEN-LAST:event_saveasMenuItemActionPerformed

privatevoid saveMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_saveMenuItemActionPerformed

// TODO add your handling code here:

try

{

FileOutputStream fos =new FileOutputStream(openfile);

fos.write(fileTextArea.getText().getBytes());

fos.close();

}

catch(Exception e)

{

System.out.println(e);

}

}//GEN-LAST:event_saveMenuItemActionPerformed

privatevoid openMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_openMenuItemActionPerformed

// TODO add your handling code here:

textmsg ="";

fdialog1.setVisible(true);

String filename = fdialog1.getFile();

String dirname = fdialog1.getDirectory();

openfile =new File(dirname, filename);

try

{

FileInputStream fis =new FileInputStream(openfile);

int bytelength=fis.available();

/**returns the number of bytes that can be read from the file*/

for (int bytecount=0;bytecount<bytelength;bytecount++)

{

char fch=(char)fis.read();

textmsg = textmsg + fch;

}

fileTextArea.setText(textmsg);

/**sets the text message in to input area*/

}

catch(Exception e)

{

System.out.println("An exception has occured");

}

}//GEN-LAST:event_openMenuItemActionPerformed

privatevoid newMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_newMenuItemActionPerformed

// TODO add your handling code here:

fileTextArea.setText("");

}//GEN-LAST:event_newMenuItemActionPerformed

privatevoid repMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_repMenuItemActionPerformed

// TODO add your handling code here:

try

{

String replace = JOptionPane.showInputDialog(null,"Replace");

fileTextArea.replaceSelection(replace);

}

catch(NumberFormatException nfe){}

}//GEN-LAST:event_repMenuItemActionPerformed

privatevoid findnMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_findnMenuItemActionPerformed

// TODO add your handling code here:

try

{

String str = fileTextArea.getText();

String findString = JOptionPane.showInputDialog(null,"Find");

int ind = str.indexOf(findString, fileTextArea.getCaretPosition());

fileTextArea.setCaretPosition(ind);

fileTextArea.setSelectionStart(ind);

fileTextArea.setSelectionEnd(ind+findString.length());

}

catch(IllegalArgumentException npe)

{

JOptionPane.showMessageDialog(null,"String not found");

}

catch(NullPointerException nfe){}

}//GEN-LAST:event_findnMenuItemActionPerformed

privatevoid findMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_findMenuItemActionPerformed

// TODO add your handling code here:

try

{

String str = fileTextArea.getText();

String findString = JOptionPane.showInputDialog(null,"Find");

int d = str.indexOf(findString);

fileTextArea.setCaretPosition(d);

fileTextArea.setSelectionStart(d);

fileTextArea.setSelectionEnd(d+findString.length());

}

catch(IllegalArgumentException e)

{

JOptionPane.showMessageDialog(null,"String not found");

}

catch(NullPointerException e){}

}//GEN-LAST:event_findMenuItemActionPerformed

privatevoid delMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_delMenuItemActionPerformed

// TODO add your handling code here:

delete_text = fileTextArea.getSelectedText();

int deleteindex = fileTextArea.getText().indexOf(delete_text);

fileTextArea.replaceRange("",deleteindex , deleteindex + delete_text.length());

}//GEN-LAST:event_delMenuItemActionPerformed

privatevoid pasteMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_pasteMenuItemActionPerformed

// TODO add your handling code here:

getcaretposition = fileTextArea.getCaretPosition();

fileTextArea.insert(copy_text,getcaretposition);

}//GEN-LAST:event_pasteMenuItemActionPerformed

privatevoid cutMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_cutMenuItemActionPerformed

// TODO add your handling code here:

cut_text = fileTextArea.getSelectedText();

int cutindex = fileTextArea.getText().indexOf(cut_text);

fileTextArea.replaceRange("", cutindex, cutindex + cut_text.length());

}//GEN-LAST:event_cutMenuItemActionPerformed

privatevoid copyMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_copyMenuItemActionPerformed

// TODO add your handling code here:

copy_text = fileTextArea.getSelectedText();

}//GEN-LAST:event_copyMenuItemActionPerformed

privatevoid saveJButtonActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_saveJButtonActionPerformed

// TODO add your handling code here:

try

{

FileOutputStream fos =new FileOutputStream(openfile);

fos.write(fileTextArea.getText().getBytes());

fos.close();

}

catch(Exception e)

{

System.out.println(e);

}

}//GEN-LAST:event_saveJButtonActionPerformed

privatevoid pasteJButtonActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_pasteJButtonActionPerformed

// TODO add your handling code here:

getcaretposition = fileTextArea.getCaretPosition();

fileTextArea.insert(copy_text,getcaretposition);

}//GEN-LAST:event_pasteJButtonActionPerformed

privatevoid cutJButtonActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_cutJButtonActionPerformed

// TODO add your handling code here:

cut_text = fileTextArea.getSelectedText();

int cutindex = fileTextArea.getText().indexOf(cut_text);

fileTextArea.replaceRange("", cutindex, cutindex + cut_text.length());

}//GEN-LAST:event_cutJButtonActionPerformed

privatevoid copyJButtonActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_copyJButtonActionPerformed

// TODO add your handling code here:

copy_text = fileTextArea.getSelectedText();

}//GEN-LAST:event_copyJButtonActionPerformed

/**

* @param args the command line arguments

*/

publicstaticvoid main(String args[]){

java.awt.EventQueue.invokeLater(new Runnable(){

publicvoid run(){

g =new MainPanel();

g.setVisible(true);

g.setSize(550,400);

}

});

}

// Variables declaration - do not modify//GEN-BEGIN:variables

publicstatic MainPanel g;

private javax.swing.JMenuItem abtMenuItem;

private javax.swing.JMenuItem bgMenuItem;

private javax.swing.JMenu comMenu;

private javax.swing.JMenuItem contMenuItem;

private javax.swing.JButton copyJButton;

private javax.swing.JMenuItem copyMenuItem;

private javax.swing.JButton cutJButton;

private javax.swing.JMenuItem cutMenuItem;

private javax.swing.JButton delJButton;

private javax.swing.JMenuItem delMenuItem;

private javax.swing.JMenu editMenu;

private javax.swing.JMenuItem execMenuItem;

private javax.swing.JMenu fileMenu;

private javax.swing.JTextArea fileTextArea;

private javax.swing.JMenuItem findMenuItem;

private javax.swing.JMenuItem findnMenuItem;

private javax.swing.JMenuItem gotoMenuItem;

private javax.swing.JMenuItem haltMenuItem;

private javax.swing.JMenu help;

private javax.swing.JMenu intpMenu;

private javax.swing.JFrame jFrame1;

private javax.swing.JMenu jMenu1;

private javax.swing.JMenuBar jMenuBar1;

private javax.swing.JMenuBar jMenuBar2;

private javax.swing.JScrollPane jScrollPane1;

private javax.swing.JScrollPane jScrollPane2;

private javax.swing.JSeparator jSeparator1;

private javax.swing.JSeparator jSeparator2;

private javax.swing.JSeparator jSeparator3;

private javax.swing.JSeparator jSeparator4;

private javax.swing.JSplitPane jSplitPane1;

private javax.swing.JSplitPane jSplitPane2;

public javax.swing.JTextArea jTextArea1;

private javax.swing.JToolBar jToolBar1;

private javax.swing.JMenuItem newMenuItem;

private javax.swing.JMenuItem openMenuItem;

private javax.swing.JMenu optMenu;

private javax.swing.JButton pasteJButton;

private javax.swing.JMenuItem pasteMenuItem;

private javax.swing.JMenuItem quitMenuItem;

private javax.swing.JMenuItem repMenuItem;

private javax.swing.JButton saveJButton;

private javax.swing.JMenuItem saveMenuItem;

private javax.swing.JMenuItem saveasMenuItem;

private javax.swing.JMenuItem selectMenuItem;

private javax.swing.JMenuItem transMenuItem;

// End of variables declaration//GEN-END:variables

}

and the applet code is :

publicclass MainPanelAppextends javax.swing.JApplet{

String copy_text ="";

String cut_text ="";

String delete_text ="";

String textmsg ="";

String outmsg ="";

int getcaretposition = 0;

java.awt.FileDialog fdialog1,fdialog2;

File openfile;

/** Creates new form MainPanel */

public MainPanelApp(){

//initComponents();

//fdialog1=new FileDialog(this, "Open ...", FileDialog.LOAD);

//fdialog2=new FileDialog(this, "Save As ...", FileDialog.SAVE);

}

publicvoid start()

{

}

/** 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.

*/

publicvoid init(){//GEN-BEGIN:initComponents

//jFrame1 = new javax.swing.JFrame();

// jMenuBar2 = new javax.swing.JMenuBar();

//jMenu1 = new javax.swing.JMenu();

jSplitPane1 =new javax.swing.JSplitPane();

jSplitPane2 =new javax.swing.JSplitPane();

jToolBar1 =new javax.swing.JToolBar();

copyJButton =new javax.swing.JButton();

cutJButton =new javax.swing.JButton();

pasteJButton =new javax.swing.JButton();

delJButton =new javax.swing.JButton();

saveJButton =new javax.swing.JButton();

jScrollPane1 =new javax.swing.JScrollPane();

fileTextArea =new javax.swing.JTextArea();

jScrollPane2 =new javax.swing.JScrollPane();

jTextArea1 =new javax.swing.JTextArea();

jTextArea1.setEditable(false);

jMenuBar1 =new javax.swing.JMenuBar();

fileMenu =new javax.swing.JMenu();

newMenuItem =new javax.swing.JMenuItem();

openMenuItem =new javax.swing.JMenuItem();

saveMenuItem =new javax.swing.JMenuItem();

saveasMenuItem =new javax.swing.JMenuItem();

jSeparator1 =new javax.swing.JSeparator();

quitMenuItem =new javax.swing.JMenuItem();

editMenu =new javax.swing.JMenu();

copyMenuItem =new javax.swing.JMenuItem();

cutMenuItem =new javax.swing.JMenuItem();

pasteMenuItem =new javax.swing.JMenuItem();

delMenuItem =new javax.swing.JMenuItem();

jSeparator2 =new javax.swing.JSeparator();

findMenuItem =new javax.swing.JMenuItem();

findnMenuItem =new javax.swing.JMenuItem();

repMenuItem =new javax.swing.JMenuItem();

intpMenu =new javax.swing.JMenu();

execMenuItem =new javax.swing.JMenuItem();

haltMenuItem =new javax.swing.JMenuItem();

comMenu =new javax.swing.JMenu();

transMenuItem =new javax.swing.JMenuItem();

optMenu =new javax.swing.JMenu();

gotoMenuItem =new javax.swing.JMenuItem();

selectMenuItem =new javax.swing.JMenuItem();

jSeparator3 =new javax.swing.JSeparator();

bgMenuItem =new javax.swing.JMenuItem();

help =new javax.swing.JMenu();

contMenuItem =new javax.swing.JMenuItem();

jSeparator4 =new javax.swing.JSeparator();

abtMenuItem =new javax.swing.JMenuItem();

//jMenu1.setText("Menu");

//jMenuBar2.add(jMenu1);

//jFrame1.setJMenuBar(jMenuBar2);

//add(jFrame1, java.awt.BorderLayout.NORTH);

//setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

//setTitle("CAL Interpreter");

jSplitPane1.setDividerLocation(250);

jSplitPane1.setDividerSize(6);

jSplitPane1.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);

jSplitPane2.setDividerLocation(30);

jSplitPane2.setDividerSize(1);

jSplitPane2.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);

copyJButton.setIcon(new javax.swing.ImageIcon("./pics/copy.png"));

copyJButton.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

copyJButtonActionPerformed(evt);

}

});

jToolBar1.add(copyJButton);

cutJButton.setIcon(new javax.swing.ImageIcon("./pics/cut.png"));

cutJButton.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

cutJButtonActionPerformed(evt);

}

});

jToolBar1.add(cutJButton);

pasteJButton.setIcon(new javax.swing.ImageIcon("./pics/paste.png"));

pasteJButton.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

pasteJButtonActionPerformed(evt);

}

});

jToolBar1.add(pasteJButton);

delJButton.setIcon(new javax.swing.ImageIcon("./pics/del.png"));

delJButton.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

delJButtonActionPerformed(evt);

}

});

jToolBar1.add(delJButton);

saveJButton.setIcon(new javax.swing.ImageIcon("./pics/save.png"));

saveJButton.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

saveJButtonActionPerformed(evt);

}

});

jToolBar1.add(saveJButton);

jSplitPane2.setLeftComponent(jToolBar1);

jScrollPane1.setViewportView(fileTextArea);

jSplitPane2.setRightComponent(jScrollPane1);

jSplitPane1.setLeftComponent(jSplitPane2);

jScrollPane2.setViewportView(jTextArea1);

jSplitPane1.setRightComponent(jScrollPane2);

add(jSplitPane1, java.awt.BorderLayout.CENTER);

fileMenu.setText("File");

newMenuItem.setText("New");

newMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

newMenuItemActionPerformed(evt);

}

});

fileMenu.add(newMenuItem);

openMenuItem.setText("Open ...");

openMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

openMenuItemActionPerformed(evt);

}

});

fileMenu.add(openMenuItem);

saveMenuItem.setText("Save");

saveMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

saveMenuItemActionPerformed(evt);

}

});

fileMenu.add(saveMenuItem);

saveasMenuItem.setText("Save As ...");

saveasMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

saveasMenuItemActionPerformed(evt);

}

});

fileMenu.add(saveasMenuItem);

fileMenu.add(jSeparator1);

quitMenuItem.setText("Quit");

quitMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

quitMenuItemActionPerformed(evt);

}

});

fileMenu.add(quitMenuItem);

jMenuBar1.add(fileMenu);

editMenu.setText("Edit");

copyMenuItem.setText("Copy");

copyMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

copyMenuItemActionPerformed(evt);

}

});

editMenu.add(copyMenuItem);

cutMenuItem.setText("Cut");

cutMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

cutMenuItemActionPerformed(evt);

}

});

editMenu.add(cutMenuItem);

pasteMenuItem.setText("Paste");

pasteMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

pasteMenuItemActionPerformed(evt);

}

});

editMenu.add(pasteMenuItem);

delMenuItem.setText("Delete");

delMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

delMenuItemActionPerformed(evt);

}

});

editMenu.add(delMenuItem);

editMenu.add(jSeparator2);

findMenuItem.setText("Find ...");

findMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

findMenuItemActionPerformed(evt);

}

});

editMenu.add(findMenuItem);

findnMenuItem.setText("Find Next");

findnMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

findnMenuItemActionPerformed(evt);

}

});

editMenu.add(findnMenuItem);

repMenuItem.setText("Replace ...");

repMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

repMenuItemActionPerformed(evt);

}

});

editMenu.add(repMenuItem);

jMenuBar1.add(editMenu);

intpMenu.setText("Interpreter");

execMenuItem.setText("Execute");

execMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

execMenuItemActionPerformed(evt);

}

});

intpMenu.add(execMenuItem);

haltMenuItem.setText("Halt");

haltMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

haltMenuItemActionPerformed(evt);

}

});

intpMenu.add(haltMenuItem);

jMenuBar1.add(intpMenu);

comMenu.setText("Compiler");

transMenuItem.setText("Translate");

transMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

transMenuItemActionPerformed(evt);

}

});

comMenu.add(transMenuItem);

jMenuBar1.add(comMenu);

optMenu.setText("Options");

gotoMenuItem.setText("Go to line ...");

gotoMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

gotoMenuItemActionPerformed(evt);

}

});

optMenu.add(gotoMenuItem);

selectMenuItem.setText("Select All");

selectMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

selectMenuItemActionPerformed(evt);

}

});

optMenu.add(selectMenuItem);

optMenu.add(jSeparator3);

bgMenuItem.setText("Set BG Color");

bgMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

bgMenuItemActionPerformed(evt);

}

});

optMenu.add(bgMenuItem);

jMenuBar1.add(optMenu);

help.setText("Help");

contMenuItem.setText("Help Contents");

contMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

contMenuItemActionPerformed(evt);

}

});

help.add(contMenuItem);

help.add(jSeparator4);

abtMenuItem.setText("About ...");

abtMenuItem.addActionListener(new java.awt.event.ActionListener(){

publicvoid actionPerformed(java.awt.event.ActionEvent evt){

abtMenuItemActionPerformed(evt);

}

});

help.add(abtMenuItem);

jMenuBar1.add(help);

setJMenuBar(jMenuBar1);

//pack();

}//GEN-END:initComponents

privatevoid transMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_transMenuItemActionPerformed

// TODO add your handling code here:

try

{

/*Process p = Runtime.getRuntime().exec("java Main "+openfile.getName());

p.destroy();

Process p1 = Runtime.getRuntime().exec("java editor progInC.c");*/

BufferedWriter bw =new BufferedWriter(new FileWriter("make.sh"));

bw.write("java Main "+openfile.getName(), 0, 10+(openfile.getName()).length());

bw.newLine();

bw.write("java editor progInC.c");

bw.close();

Process p = Runtime.getRuntime().exec("sh make.sh");

BufferedReader br =new BufferedReader(new FileReader("prog.c"));

outmsg = br.readLine();

//System.out.println("here");

while(outmsg!=null)

{

jTextArea1.append(outmsg);

jTextArea1.append("\n");

outmsg = br.readLine();

}

br.close();

}

catch(IOException e)

{

}

}//GEN-LAST:event_transMenuItemActionPerformed

privatevoid delJButtonActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_delJButtonActionPerformed

// TODO add your handling code here:

delete_text = fileTextArea.getSelectedText();

int deleteindex = fileTextArea.getText().indexOf(delete_text);

fileTextArea.replaceRange("",deleteindex , deleteindex + delete_text.length());

}//GEN-LAST:event_delJButtonActionPerformed

privatevoid abtMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_abtMenuItemActionPerformed

// TODO add your handling code here:

}//GEN-LAST:event_abtMenuItemActionPerformed

privatevoid contMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_contMenuItemActionPerformed

// TODO add your handling code here:

}//GEN-LAST:event_contMenuItemActionPerformed

privatevoid haltMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_haltMenuItemActionPerformed

// TODO add your handling code here:

}//GEN-LAST:event_haltMenuItemActionPerformed

privatevoid execMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_execMenuItemActionPerformed

// TODO add your handling code here:

//MainProg mp = new MainProg();

//mp.execute(openfile);

//String s = JOptionPane.showInputDialog("enter something");

// jTextArea1.append("s = " + s);

test.add();

}//GEN-LAST:event_execMenuItemActionPerformed

privatevoid bgMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_bgMenuItemActionPerformed

// TODO add your handling code here:

Color bgcolor = JColorChooser.showDialog(fileTextArea,"Choose background color", getBackground());

//Show a model color chooser dialog and blocks until the dialog is hidden

if(bgcolor !=null)

fileTextArea.setBackground(bgcolor);

}//GEN-LAST:event_bgMenuItemActionPerformed

privatevoid selectMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_selectMenuItemActionPerformed

// TODO add your handling code here:

String str = fileTextArea.getText();//get the text that is present by this component

fileTextArea.setSelectionStart(0);

fileTextArea.setSelectionEnd(str.length());

}//GEN-LAST:event_selectMenuItemActionPerformed

privatevoid gotoMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_gotoMenuItemActionPerformed

// TODO add your handling code here:

try

{

Element root = fileTextArea.getDocument().getDefaultRootElement();

Element paragraph=root.getElement(Integer.parseInt(JOptionPane.showInputDialog(null,"Go to line")));

fileTextArea.setCaretPosition(paragraph.getStartOffset()-1);

}

catch(NullPointerException npe)

{

JOptionPane.showMessageDialog(null,"Invalid line number");

}

}//GEN-LAST:event_gotoMenuItemActionPerformed

privatevoid quitMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_quitMenuItemActionPerformed

// TODO add your handling code here:

System.exit(0);

}//GEN-LAST:event_quitMenuItemActionPerformed

privatevoid saveasMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_saveasMenuItemActionPerformed

// TODO add your handling code here:

try

{

fdialog2.setVisible(true);

FileOutputStream fos1 =new FileOutputStream(fdialog2.getDirectory()+fdialog2.getFile());

fos1.write(fileTextArea.getText().getBytes());

fos1.close();

}

catch(Exception e)

{

System.out.println(e);

}

}//GEN-LAST:event_saveasMenuItemActionPerformed

privatevoid saveMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_saveMenuItemActionPerformed

// TODO add your handling code here:

try

{

FileOutputStream fos =new FileOutputStream(openfile);

fos.write(fileTextArea.getText().getBytes());

fos.close();

}

catch(Exception e)

{

System.out.println(e);

}

}//GEN-LAST:event_saveMenuItemActionPerformed

privatevoid openMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_openMenuItemActionPerformed

// TODO add your handling code here:

textmsg ="";

fdialog1.setVisible(true);

String filename = fdialog1.getFile();

String dirname = fdialog1.getDirectory();

openfile =new File(dirname, filename);

try

{

FileInputStream fis =new FileInputStream(openfile);

int bytelength=fis.available();

/**returns the number of bytes that can be read from the file*/

for (int bytecount=0;bytecount<bytelength;bytecount++)

{

char fch=(char)fis.read();

textmsg = textmsg + fch;

}

fileTextArea.setText(textmsg);

/**sets the text message in to input area*/

}

catch(Exception e)

{

System.out.println("An exception has occured");

}

}//GEN-LAST:event_openMenuItemActionPerformed

privatevoid newMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_newMenuItemActionPerformed

// TODO add your handling code here:

fileTextArea.setText("");

}//GEN-LAST:event_newMenuItemActionPerformed

privatevoid repMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_repMenuItemActionPerformed

// TODO add your handling code here:

try

{

String replace = JOptionPane.showInputDialog(null,"Replace");

fileTextArea.replaceSelection(replace);

}

catch(NumberFormatException nfe){}

}//GEN-LAST:event_repMenuItemActionPerformed

privatevoid findnMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_findnMenuItemActionPerformed

// TODO add your handling code here:

try

{

String str = fileTextArea.getText();

String findString = JOptionPane.showInputDialog(null,"Find");

int ind = str.indexOf(findString, fileTextArea.getCaretPosition());

fileTextArea.setCaretPosition(ind);

fileTextArea.setSelectionStart(ind);

fileTextArea.setSelectionEnd(ind+findString.length());

}

catch(IllegalArgumentException npe)

{

JOptionPane.showMessageDialog(null,"String not found");

}

catch(NullPointerException nfe){}

}//GEN-LAST:event_findnMenuItemActionPerformed

privatevoid findMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_findMenuItemActionPerformed

// TODO add your handling code here:

try

{

String str = fileTextArea.getText();

String findString = JOptionPane.showInputDialog(null,"Find");

int d = str.indexOf(findString);

fileTextArea.setCaretPosition(d);

fileTextArea.setSelectionStart(d);

fileTextArea.setSelectionEnd(d+findString.length());

}

catch(IllegalArgumentException e)

{

JOptionPane.showMessageDialog(null,"String not found");

}

catch(NullPointerException e){}

}//GEN-LAST:event_findMenuItemActionPerformed

privatevoid delMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_delMenuItemActionPerformed

// TODO add your handling code here:

delete_text = fileTextArea.getSelectedText();

int deleteindex = fileTextArea.getText().indexOf(delete_text);

fileTextArea.replaceRange("",deleteindex , deleteindex + delete_text.length());

}//GEN-LAST:event_delMenuItemActionPerformed

privatevoid pasteMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_pasteMenuItemActionPerformed

// TODO add your handling code here:

getcaretposition = fileTextArea.getCaretPosition();

fileTextArea.insert(copy_text,getcaretposition);

}//GEN-LAST:event_pasteMenuItemActionPerformed

privatevoid cutMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_cutMenuItemActionPerformed

// TODO add your handling code here:

cut_text = fileTextArea.getSelectedText();

int cutindex = fileTextArea.getText().indexOf(cut_text);

fileTextArea.replaceRange("", cutindex, cutindex + cut_text.length());

}//GEN-LAST:event_cutMenuItemActionPerformed

privatevoid copyMenuItemActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_copyMenuItemActionPerformed

// TODO add your handling code here:

copy_text = fileTextArea.getSelectedText();

}//GEN-LAST:event_copyMenuItemActionPerformed

privatevoid saveJButtonActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_saveJButtonActionPerformed

// TODO add your handling code here:

try

{

FileOutputStream fos =new FileOutputStream(openfile);

fos.write(fileTextArea.getText().getBytes());

fos.close();

}

catch(Exception e)

{

System.out.println(e);

}

}//GEN-LAST:event_saveJButtonActionPerformed

privatevoid pasteJButtonActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_pasteJButtonActionPerformed

// TODO add your handling code here:

getcaretposition = fileTextArea.getCaretPosition();

fileTextArea.insert(copy_text,getcaretposition);

}//GEN-LAST:event_pasteJButtonActionPerformed

privatevoid cutJButtonActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_cutJButtonActionPerformed

// TODO add your handling code here:

cut_text = fileTextArea.getSelectedText();

int cutindex = fileTextArea.getText().indexOf(cut_text);

fileTextArea.replaceRange("", cutindex, cutindex + cut_text.length());

}//GEN-LAST:event_cutJButtonActionPerformed

privatevoid copyJButtonActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_copyJButtonActionPerformed

// TODO add your handling code here:

copy_text = fileTextArea.getSelectedText();

}//GEN-LAST:event_copyJButtonActionPerformed

/**

* @param args the command line arguments

*/

/* public static void main(String args[]) {

java.awt.EventQueue.invokeLater(new Runnable() {

public void run() {

g = new MainPanel();

g.setVisible(true);

g.setSize(550,400);

}

});

}*/

// Variables declaration - do not modify//GEN-BEGIN:variables

publicstatic MainPanel g;

private javax.swing.JMenuItem abtMenuItem;

private javax.swing.JMenuItem bgMenuItem;

private javax.swing.JMenu comMenu;

private javax.swing.JMenuItem contMenuItem;

private javax.swing.JButton copyJButton;

private javax.swing.JMenuItem copyMenuItem;

private javax.swing.JButton cutJButton;

private javax.swing.JMenuItem cutMenuItem;

private javax.swing.JButton delJButton;

private javax.swing.JMenuItem delMenuItem;

private javax.swing.JMenu editMenu;

private javax.swing.JMenuItem execMenuItem;

private javax.swing.JMenu fileMenu;

private javax.swing.JTextArea fileTextArea;

private javax.swing.JMenuItem findMenuItem;

private javax.swing.JMenuItem findnMenuItem;

private javax.swing.JMenuItem gotoMenuItem;

private javax.swing.JMenuItem haltMenuItem;

private javax.swing.JMenu help;

private javax.swing.JMenu intpMenu;

private javax.swing.JFrame jFrame1;

private javax.swing.JMenu jMenu1;

private javax.swing.JMenuBar jMenuBar1;

private javax.swing.JMenuBar jMenuBar2;

private javax.swing.JScrollPane jScrollPane1;

private javax.swing.JScrollPane jScrollPane2;

private javax.swing.JSeparator jSeparator1;

private javax.swing.JSeparator jSeparator2;

private javax.swing.JSeparator jSeparator3;

private javax.swing.JSeparator jSeparator4;

private javax.swing.JSplitPane jSplitPane1;

private javax.swing.JSplitPane jSplitPane2;

publicstatic javax.swing.JTextArea jTextArea1;

private javax.swing.JToolBar jToolBar1;

private javax.swing.JMenuItem newMenuItem;

private javax.swing.JMenuItem openMenuItem;

private javax.swing.JMenu optMenu;

private javax.swing.JButton pasteJButton;

private javax.swing.JMenuItem pasteMenuItem;

private javax.swing.JMenuItem quitMenuItem;

private javax.swing.JMenuItem repMenuItem;

private javax.swing.JButton saveJButton;

private javax.swing.JMenuItem saveMenuItem;

private javax.swing.JMenuItem saveasMenuItem;

private javax.swing.JMenuItem selectMenuItem;

private javax.swing.JMenuItem transMenuItem;

// End of variables declaration//GEN-END:variables

}

>

[89531 byte] By [mynameisanuraga] at [2007-11-27 8:35:29]
# 1
HiWhat error does it show in the JVM console?:)
monk3ya at 2007-7-12 20:32:06 > top of Java-index,Desktop,Core GUI APIs...