Java Applet Problem

I have recently been creating an applet with 2 main parts. Firstly, to aid as a text editor and to, secondly, query an SQL database (Eventually).

I am currently having a problem running the Applet in Appletviewer and internet explorer. I have, in part, used Jbuilder to create the UI and it is able to be viewed in both the preview and in the built in Applet Viewer Jbuilder provides.

The Applet compiles without any errors, although I do understand that is not always as simple as it seems. This is the error I recieve when running the program in IE.

java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read)

at java.security.AccessControlContext.checkPermission(Unknown Source)

at java.security.AccessController.checkPermission(Unknown Source)

at java.lang.SecurityManager.checkPermission(Unknown Source)

at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)

at java.lang.System.getProperty(Unknown Source)

at java.io.Win32FileSystem.getUserPath(Unknown Source)

at java.io.Win32FileSystem.resolve(Unknown Source)

at java.io.File.getAbsolutePath(Unknown Source)

at sun.awt.shell.Win32ShellFolder2.<init>(Unknown Source)

at sun.awt.shell.Win32ShellFolder2.listFiles(Unknown Source)

at sun.awt.shell.ShellFolder.listFiles(Unknown Source)

at sun.awt.shell.Win32ShellFolderManager2.get(Unknown Source)

at sun.awt.shell.ShellFolder.get(Unknown Source)

at javax.swing.plaf.metal.MetalFileChooserUI.updateUseShellFolder(Unknown Source)

at javax.swing.plaf.metal.MetalFileChooserUI.installComponents(Unknown Source)

at javax.swing.plaf.basic.BasicFileChooserUI.installUI(Unknown Source)

at javax.swing.plaf.metal.MetalFileChooserUI.installUI(Unknown Source)

at javax.swing.JComponent.setUI(Unknown Source)

at javax.swing.JFileChooser.updateUI(Unknown Source)

at javax.swing.JFileChooser.setup(Unknown Source)

at javax.swing.JFileChooser.<init>(Unknown Source)

at javax.swing.JFileChooser.<init>(Unknown Source)

at web_text_editor.WebTextEditor.<init>(WebTextEditor.java:90)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

at java.lang.reflect.Constructor.newInstance(Unknown Source)

at java.lang.Class.newInstance0(Unknown Source)

at java.lang.Class.newInstance(Unknown Source)

at sun.applet.AppletPanel.createApplet(Unknown Source)

at sun.plugin.AppletViewer.createApplet(Unknown Source)

at sun.applet.AppletPanel.runLoader(Unknown Source)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Exception in thread "Thread-38" java.lang.NullPointerException

at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)

at sun.plugin.AppletViewer.showAppletException(Unknown Source)

at sun.applet.AppletPanel.runLoader(Unknown Source)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

java.lang.NullPointerException

at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)

at sun.plugin.AppletViewer.showAppletStatus(Unknown Source)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

And gives the message "Applet is Notinated".

And when running in AppletViewer it gives the message "Start: Applet Not Initialized".

This is my code...

package web_text_editor;

import java.awt.*;

import java.awt.event.*;

import java.applet.*;

import javax.swing.JPanel;

import javax.swing.JScrollPane;

import javax.swing.JTextArea;

import javax.swing.*;

import java.io.*;

import javax.swing.text.Document;

import javax.swing.event.DocumentEvent;

import javax.swing.event.DocumentListener;

import java.sql.*;

/**

*

Title: Text editor

*

*

Description: An online Text Editor

*

*

Copyright: Copyright (c) 2005

*

*

Company:

*

* @author Mike Melling

* @version 1.0

*/

public class WebTextEditor extends Applet

{

boolean isStandalone = false;

BorderLayout borderLayout1 = new BorderLayout();

JPanel jPanel1 = new JPanel();

BorderLayout borderLayout2 = new BorderLayout();

JPanel jPanel2 = new JPanel();

JPanel jPanel3 = new JPanel();

JPanel jPanel4 = new JPanel();

JPanel jPanel5 = new JPanel();

JPanel jPanel6 = new JPanel();

BorderLayout borderLayout3 = new BorderLayout();

BorderLayout borderLayout4 = new BorderLayout();

BorderLayout borderLayout6 = new BorderLayout();

BorderLayout borderLayout7 = new BorderLayout();

JScrollPane jScrollPane1 = new JScrollPane();

JTextArea jTextArea1 = new JTextArea();

JScrollPane jScrollPane2 = new JScrollPane();

JTextArea jTextArea4 = new JTextArea();

BorderLayout borderLayout8 = new BorderLayout();

JPanel jPanel7 = new JPanel();

JPanel jPanel8 = new JPanel();

JPanel jPanel9 = new JPanel();

JPanel jPanel10 = new JPanel();

JPanel jPanel11 = new JPanel();

JPanel jPanel13 = new JPanel();

JPanel jPanel14 = new JPanel();

BorderLayout borderLayout9 = new BorderLayout();

JPanel jPanel15 = new JPanel();

JPanel jPanel16 = new JPanel();

JPanel jPanel17 = new JPanel();

JPanel jPanel18 = new JPanel();

JPanel jPanel19 = new JPanel();

BorderLayout borderLayout10 = new BorderLayout();

JButton jButton1 = new JButton();

JButton jButton2 = new JButton();

JPanel jPanel20 = new JPanel();

JPanel jPanel22 = new JPanel();

JPanel jPanel23 = new JPanel();

JScrollPane jScrollPane3 = new JScrollPane();

JPanel jPanel24 = new JPanel();

JButton jButton4 = new JButton();

JButton jButton5 = new JButton();

JButton jButton6 = new JButton();

JPanel jPanel25 = new JPanel();

JPanel jPanel26 = new JPanel();

JComboBox jComboBox1 = new JComboBox();

JButton jButton7 = new JButton();

JTextField jTextField1 = new JTextField();

BorderLayout borderLayout11 = new BorderLayout();

JScrollPane jScrollPane4 = new JScrollPane();

JTextArea jTextArea2 = new JTextArea();

BorderLayout borderLayout12 = new BorderLayout();

JPanel jPanel29 = new JPanel();

BorderLayout borderLayout5 = new BorderLayout();

JScrollPane jScrollPane5 = new JScrollPane();

JTextArea jTextArea3 = new JTextArea();

JLabel jLabel1 = new JLabel();

JFileChooser jFileChooser1 = new JFileChooser();

String currFileName = null; // Full path and filename. null means new/untitled.

boolean dirty = false; // false means the file was not modified initially.

BorderLayout borderLayout13 = new BorderLayout();

BorderLayout borderLayout14 = new BorderLayout();

FlowLayout flowLayout1 = new FlowLayout();

BorderLayout borderLayout15 = new BorderLayout();

FlowLayout flowLayout2 = new FlowLayout();

FlowLayout flowLayout3 = new FlowLayout();

JPanel jPanel21 = new JPanel();

JButton jButton8 = new JButton();

JButton jButton9 = new JButton(); //Get a parameter value

JPanel jPanel27 = new JPanel();

JPanel jPanel28 = new JPanel();

Document document1 = jTextArea1.getDocument();

Document document2 = jTextArea3.getDocument();

public String getParameter(String key, String def)

{

return isStandalone ? System.getProperty(key, def) :

(getParameter(key) != null ? getParameter(key) : def);

}

//Construct the applet

public WebTextEditor()

{

}

//Initialize the applet

public void init()

{

try

{

jbInit();

}

catch (Exception e)

{

e.printStackTrace();

}

}

//Component initialization

private void jbInit() throws Exception

{

jPanel1.setLayout(borderLayout2);

jPanel5.setLayout(borderLayout3);

jPanel2.setLayout(borderLayout13);

jPanel6.setLayout(borderLayout14);

jPanel3.setLayout(borderLayout6);

jPanel4.setLayout(borderLayout7);

jTextArea1.setPreferredSize(new Dimension(430, 510));

jTextArea1.setText("");

jPanel3.setPreferredSize(new Dimension(700, 100));

jPanel4.setBackground(Color.lightGray);

jPanel4.setPreferredSize(new Dimension(700, 50));

jTextArea4.setPreferredSize(new Dimension(700, 100));

jTextArea4.setEditable(false);

jTextArea4.setText("");

jScrollPane2.setVerticalScrollBarPolicy(JScrollPane.

VERTICAL_SCROLLBAR_ALWAYS);

jScrollPane2.setPreferredSize(new Dimension(700, 100));

this.setLayout(borderLayout8);

jPanel2.setBackground(Color.lightGray);

jPanel2.setPreferredSize(new Dimension(700, 850));

jPanel7.setBackground(Color.lightGray);

jPanel8.setBackground(Color.lightGray);

jPanel9.setBackground(Color.lightGray);

jPanel10.setBackground(Color.lightGray);

jPanel11.setBackground(Color.lightGray);

jScrollPane1.setVerticalScrollBarPolicy(JScrollPane.

VERTICAL_SCROLLBAR_ALWAYS);

jPanel13.setBackground(Color.lightGray);

jPanel14.setBackground(Color.lightGray);

jPanel14.setLayout(borderLayout9);

jPanel15.setBackground(Color.lightGray);

jPanel15.setLayout(borderLayout10);

jPanel16.setBackground(Color.lightGray);

jPanel16.setPreferredSize(new Dimension(10, 7));

jPanel19.setBackground(Color.lightGray);

jPanel18.setBackground(Color.lightGray);

jPanel18.setPreferredSize(new Dimension(280, 33));

jPanel18.setLayout(flowLayout1);

jPanel17.setBackground(Color.lightGray);

jButton1.setBackground(Color.lightGray);

jButton1.setHorizontalAlignment(SwingConstants.CENTER);

jButton1.setHorizontalTextPosition(SwingConstants.CENTER);

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

jButton1.addActionListener(new WebTextEditor_jButton1_actionAdapter(this));

jButton2.setBackground(Color.lightGray);

jButton2.setPreferredSize(new Dimension(83, 23));

jButton2.setHorizontalAlignment(SwingConstants.CENTER);

jButton2.setHorizontalTextPosition(SwingConstants.CENTER);

jButton2.setText("Open");

jButton2.addActionListener(new WebTextEditor_jButton2_actionAdapter(this));

jPanel5.setPreferredSize(new Dimension(500, 560));

jPanel6.setBackground(Color.lightGray);

jPanel6.setMinimumSize(new Dimension(217, 550));

jPanel6.setPreferredSize(new Dimension(500, 550));

jPanel22.setBackground(Color.lightGray);

jPanel22.setPreferredSize(new Dimension(10, 275));

jPanel22.setLayout(borderLayout15);

jPanel23.setBackground(Color.lightGray);

jPanel23.setPreferredSize(new Dimension(10, 275));

jPanel23.setLayout(borderLayout11);

jButton4.setBackground(Color.lightGray);

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

jButton4.addActionListener(new WebTextEditor_jButton4_actionAdapter(this));

jButton6.setBackground(Color.lightGray);

jButton6.setPreferredSize(new Dimension(83, 23));

jButton6.setText("Clear");

jButton6.addActionListener(new WebTextEditor_jButton6_actionAdapter(this));

jPanel24.setLayout(flowLayout2);

jPanel24.setBackground(Color.lightGray);

jPanel24.setMinimumSize(new Dimension(217, 23));

jPanel24.setPreferredSize(new Dimension(217, 33));

jPanel25.setLayout(flowLayout3);

jButton7.setBackground(Color.lightGray);

jButton7.setPreferredSize(new Dimension(83, 23));

jButton7.setText("Search");

jTextField1.setPreferredSize(new Dimension(195, 20));

jTextField1.setText("Please Insert Date Of Note");

jPanel26.setLayout(borderLayout12);

jPanel25.setBackground(Color.lightGray);

jScrollPane4.setHorizontalScrollBarPolicy(JScrollPane.

HORIZONTAL_SCROLLBAR_AS_NEEDED);

jScrollPane4.setVerticalScrollBarPolicy(JScrollPane.

VERTICAL_SCROLLBAR_ALWAYS);

jScrollPane4.setPreferredSize(new Dimension(2, 242));

jPanel29.setMinimumSize(new Dimension(10, 230));

jPanel29.setPreferredSize(new Dimension(10, 235));

jPanel29.setLayout(borderLayout5);

jScrollPane5.setHorizontalScrollBarPolicy(JScrollPane.

HORIZONTAL_SCROLLBAR_AS_NEEDED);

jScrollPane5.setVerticalScrollBarPolicy(JScrollPane.

VERTICAL_SCROLLBAR_ALWAYS);

jScrollPane5.setPreferredSize(new Dimension(19, 242));

jLabel1.setFont(new java.awt.Font("Dialog", Font.PLAIN, 20));

jLabel1.setToolTipText("");

jLabel1.setHorizontalAlignment(SwingConstants.CENTER);

jLabel1.setHorizontalTextPosition(SwingConstants.CENTER);

jLabel1.setText("Cheshire Parish Register Database Note Tagging System");

jPanel26.setPreferredSize(new Dimension(10, 235));

jPanel21.setBackground(Color.lightGray);

jButton8.setPreferredSize(new Dimension(83, 23));

jButton8.setText("Save");

jButton8.addActionListener(new WebTextEditor_jButton8_actionAdapter(this));

jButton9.setPreferredSize(new Dimension(83, 23));

jButton9.setText("Save");

jButton9.addActionListener(new WebTextEditor_jButton9_actionAdapter(this));

jComboBox1.setPreferredSize(new Dimension(195, 19));

jPanel27.setBackground(Color.lightGray);

jPanel28.setBackground(Color.lightGray);

document1.addDocumentListener(new

WebTextEditor_document1_documentAdapter(this));

jTextArea1.setDocument(document1);

document2.addDocumentListener(new

WebTextEditor_document2_documentAdapter(this));

jTextArea3.setDocument(document2);

jPanel1.add(jPanel2, java.awt.BorderLayout.CENTER);

jPanel1.add(jPanel3, java.awt.BorderLayout.SOUTH);

jScrollPane2.getViewport().add(jTextArea4);

jPanel1.add(jPanel4, java.awt.BorderLayout.NORTH);

jPanel5.add(jScrollPane1, java.awt.BorderLayout.CENTER);

jScrollPane1.getViewport().add(jTextArea1);

this.add(jPanel1, java.awt.BorderLayout.CENTER);

jPanel5.add(jPanel7, java.awt.BorderLayout.WEST);

jPanel3.add(jScrollPane2, java.awt.BorderLayout.CENTER);

jPanel3.add(jPanel8, java.awt.BorderLayout.SOUTH);

jPanel3.add(jPanel9, java.awt.BorderLayout.WEST);

jPanel3.add(jPanel10, java.awt.BorderLayout.EAST);

jPanel3.add(jPanel11, java.awt.BorderLayout.NORTH);

jPanel5.add(jPanel13, java.awt.BorderLayout.EAST);

jPanel5.add(jPanel14, java.awt.BorderLayout.NORTH);

jPanel14.add(jPanel16, java.awt.BorderLayout.SOUTH);

jPanel14.add(jPanel15, java.awt.BorderLayout.NORTH);

jPanel15.add(jPanel18, java.awt.BorderLayout.CENTER);

jPanel15.add(jPanel19, java.awt.BorderLayout.WEST);

jPanel15.add(jPanel17, java.awt.BorderLayout.EAST);

jPanel23.add(jPanel26, java.awt.BorderLayout.SOUTH);

jScrollPane4.getViewport().add(jTextArea2);

jPanel29.add(jScrollPane5, java.awt.BorderLayout.CENTER);

jScrollPane5.getViewport().add(jTextArea3);

jPanel26.add(jScrollPane4, java.awt.BorderLayout.CENTER);

jPanel4.add(jLabel1, java.awt.BorderLayout.CENTER);

jPanel2.add(jPanel5, java.awt.BorderLayout.CENTER);

jPanel2.add(jPanel6, java.awt.BorderLayout.EAST);

jPanel6.add(jPanel22, java.awt.BorderLayout.SOUTH);

jPanel18.add(jButton2, null);

jPanel18.add(jButton8);

jPanel18.add(jButton1, null);

jPanel22.add(jPanel29, java.awt.BorderLayout.SOUTH);

jPanel24.add(jButton6, null);

jPanel24.add(jButton9);

jPanel24.add(jButton4, null);

jPanel25.add(jTextField1, null);

jPanel25.add(jComboBox1, null);

jPanel25.add(jButton7, null);

jPanel22.add(jPanel21, java.awt.BorderLayout.CENTER);

jPanel22.add(jPanel24, java.awt.BorderLayout.NORTH);

jPanel23.add(jPanel25, java.awt.BorderLayout.WEST);

jPanel6.add(jPanel23, java.awt.BorderLayout.CENTER);

jPanel6.add(jPanel27, java.awt.BorderLayout.EAST);

jPanel29.add(jPanel28, java.awt.BorderLayout.EAST);

}

// Open named file; read text from file into jTextArea1; report to Tracker.

void openFile(String fileName)

{

try

{

// Open a file of the given name.

File file = new File(fileName);

// Get the size of the opened file.

int size = (int) file.length();

// Set to zero a counter for counting the number of

// characters that have been read from the file.

int chars_read = 0;

// Create an input reader based on the file, so we can read its data.

// FileReader handles international character encoding conversions.

FileReader in = new FileReader(file);

// Create a character array of the size of the file,

// to use as a data buffer, into which we will read

// the text data.

char[] data = new char[size];

// Read all available characters into the buffer.

while (in.ready())

{

// Increment the count for each character read,

// and accumulate them in the data buffer.

chars_read += in.read(data, chars_read, size - chars_read);

}

in.close();

// Create a temporary string containing the data,

// and set the string into the JTextArea.

jTextArea1.setText(new String(data, 0, chars_read));

// Cache the currently opened filename for use at save time...

this.currFileName = fileName;

// and mark the edit session as being clean

this.dirty = false;

// Display the name of the opened directory+file in the Tracker.

jTextArea4.append('\n'+"Opened " + fileName);

}

catch (IOException e)

{

jTextArea4.append('\n'+"Error opening " + fileName);

}

}

// Save current file; handle not yet having a filename; report to Tracker.

boolean saveFile1()

{

// Handle the case where we don't have a file name yet.

if (currFileName == null)

{

return saveAsFile1();

}

try

{

// Open a file of the current name.

File file = new File (currFileName);

// Create an output writer that will write to that file.

// FileWriter handles international characters encoding conversions.

FileWriter out = new FileWriter(file);

String text = jTextArea1.getText();

out.write(text);

out.close();

this.dirty = false;

// Display the name of the saved directory+file in the Tracker.

jTextArea4.append('\n'+"Saved to " + currFileName);

return true;

}

catch (IOException e)

{

jTextArea4.append('\n'+"Error saving "+ currFileName);

}

return false;

}

// Save current file, asking user for new destination name.

// Report to Tracker.

boolean saveAsFile1()

{

// Use the SAVE version of the dialog, test return for Approve/Cancel

if (JFileChooser.APPROVE_OPTION == jFileChooser1.showSaveDialog(this))

{

// Set the current file name to the user's selection,

// then do a regular saveFile

currFileName = jFileChooser1.getSelectedFile().getPath();

//repaints menu after item is selected

this.repaint();

return saveFile1();

}

else

{

this.repaint();

return false;

}

}

// Save current file; handle not yet having a filename; report to Tracker.

boolean saveFile2()

{

// Handle the case where we don't have a file name yet.

if (currFileName == null)

{

return saveAsFile2();

}

try

{

// Open a file of the current name.

File file = new File (currFileName);

// Create an output writer that will write to that file.

// FileWriter handles international characters encoding conversions.

FileWriter out = new FileWriter(file);

String text = jTextArea3.getText();

out.write(text);

out.close();

this.dirty = false;

// Display the name of the saved directory+file in the Tracker.

jTextArea4.append('\n'+"Saved to " + currFileName);

return true;

}

catch (IOException e)

{

jTextArea4.append('\n'+"Error saving "+ currFileName);

}

return false;

}

// Save current file, asking user for new destination name.

// Report to Tracker.

boolean saveAsFile2()

{

// Use the SAVE version of the dialog, test return for Approve/Cancel

if (JFileChooser.APPROVE_OPTION == jFileChooser1.showSaveDialog(this))

{

// Set the current file name to the user's selection,

// then do a regular saveFile

currFileName = jFileChooser1.getSelectedFile().getPath();

//repaints menu after item is selected

this.repaint();

return saveFile1();

}

else

{

this.repaint();

return false;

}

}

// Check if file is dirty.

// If so, prompt for save/don't save/cancel save decision.

boolean okToAbandon()

{

if (!dirty)

{

return true;

}

int value = JOptionPane.showConfirmDialog(this, "Save changes?",

"Text Edit", JOptionPane.YES_NO_CANCEL_OPTION) ;

switch (value)

{

case JOptionPane.YES_OPTION:

// Yes, please save changes

return saveFile1();

case JOptionPane.NO_OPTION:

// No, abandon edits; that is, return true without saving

return true;

case JOptionPane.CANCEL_OPTION:

default:

// Cancel the dialog without saving or closing

return false;

}

}

//Get Applet information

public String getAppletInfo()

{

return "Applet Information";

}

//Get parameter info

public String[][] getParameterInfo()

{

return null;

}

void clear()

{

// Handle the File|New menu item.

if (okToAbandon())

{

// clears the text of the TextArea

jTextArea3.setText("");

// clear the current filename and set the file as clean:

currFileName = null;

dirty = false;

}

}

void newFile()

{

// Handle the File|New menu item.

if (okToAbandon())

{

// clears the text of the TextArea

jTextArea1.setText("");

// clear the current filename and set the file as clean:

currFileName = null;

dirty = false;

}

}

void query()

{

}

void jButton2_actionPerformed(ActionEvent e)

{

//Handle the File|Open menu item.

if (!okToAbandon())

{

return;

}

// Use the OPEN version of the dialog, test return for Approve/Cancel

if (JFileChooser.APPROVE_OPTION == jFileChooser1.showOpenDialog(this))

{

// Call openFile to attempt to load the text from file into TextArea

openFile(jFileChooser1.getSelectedFile().getPath());

}

this.repaint();

}

public void jButton3_actionPerformed(ActionEvent e)

{

newFile();

}

public void jButton7_actionPerformed(ActionEvent e)

{

query();

}

public void jButton6_actionPerformed(ActionEvent e)

{

clear();

}

public void jButton1_actionPerformed(ActionEvent e)

{

saveAsFile2();

}

public void jButton4_actionPerformed(ActionEvent e)

{

saveAsFile1();

}

public void jButton8_actionPerformed(ActionEvent e)

{

saveFile1();

}

public void jButton9_actionPerformed(ActionEvent e)

{

saveFile2();

}

public void document1_changedUpdate(DocumentEvent e)

{

dirty = true;

}

public void document1_insertUpdate(DocumentEvent e)

{

dirty = true;

}

public void document1_removeUpdate(DocumentEvent e)

{

dirty = true;

}

public void document2_changedUpdate(DocumentEvent e)

{

dirty = true;

}

public void document2_insertUpdate(DocumentEvent e)

{

dirty = true;

}

public void document2_removeUpdate(DocumentEvent e)

{

dirty = true;

}

public class WebTextEditor_document1_documentAdapter implements DocumentListener

{

private WebTextEditor adaptee;

WebTextEditor_document1_documentAdapter(WebTextEditor adaptee)

{

this.adaptee = adaptee;

}

public void insertUpdate(DocumentEvent e)

{

adaptee.document1_insertUpdate(e);

}

public void removeUpdate(DocumentEvent e)

{

adaptee.document1_removeUpdate(e);

}

public void changedUpdate(DocumentEvent e)

{

adaptee.document1_changedUpdate(e);

}

}

public class WebTextEditor_document2_documentAdapter implements DocumentListener

{

private WebTextEditor adaptee;

WebTextEditor_document2_documentAdapter(WebTextEditor adaptee)

{

this.adaptee = adaptee;

}

public void insertUpdate(DocumentEvent e)

{

adaptee.document2_insertUpdate(e);

}

public void removeUpdate(DocumentEvent e)

{

adaptee.document2_removeUpdate(e);

}

public void changedUpdate(DocumentEvent e)

{

adaptee.document2_changedUpdate(e);

}

}

public class WebTextEditor_jButton2_actionAdapter implements ActionListener

{

private WebTextEditor adaptee;

WebTextEditor_jButton2_actionAdapter(WebTextEditor adaptee)

{

this.adaptee = adaptee;

}

public void actionPerformed(ActionEvent e)

{

adaptee.jButton2_actionPerformed(e);

}

}

public class WebTextEditor_jButton8_actionAdapter implements ActionListener

{

private WebTextEditor adaptee;

WebTextEditor_jButton8_actionAdapter(WebTextEditor adaptee)

{

this.adaptee = adaptee;

}

public void actionPerformed(ActionEvent e)

{

adaptee.jButton8_actionPerformed(e);

}

}

public class WebTextEditor_jButton4_actionAdapter implements ActionListener

{

private WebTextEditor adaptee;

WebTextEditor_jButton4_actionAdapter(WebTextEditor adaptee)

{

this.adaptee = adaptee;

}

public void actionPerformed(ActionEvent e)

{

adaptee.jButton4_actionPerformed(e);

}

}

public class WebTextEditor_jButton9_actionAdapter implements ActionListener

{

private WebTextEditor adaptee;

WebTextEditor_jButton9_actionAdapter(WebTextEditor adaptee)

{

this.adaptee = adaptee;

}

public void actionPerformed(ActionEvent e)

{

adaptee.jButton9_actionPerformed(e);

}

}

public class WebTextEditor_jButton1_actionAdapter implements ActionListener

{

private WebTextEditor adaptee;

WebTextEditor_jButton1_actionAdapter(WebTextEditor adaptee)

{

this.adaptee = adaptee;

}

public void actionPerformed(ActionEvent e)

{

adaptee.jButton1_actionPerformed(e);

}

}

public class WebTextEditor_jButton6_actionAdapter implements ActionListener

{

private WebTextEditor adaptee;

WebTextEditor_jButton6_actionAdapter(WebTextEditor adaptee)

{

this.adaptee = adaptee;

}

public void actionPerformed(ActionEvent e)

{

adaptee.jButton6_actionPerformed(e);

}

}

}

Any help would be appreciated!

[27939 byte] By [Mellingy2ma] at [2007-10-2 15:24:59]
# 1
The boolean needs to = true otherwise the program will just display errors.
CompilerCama at 2007-7-13 14:39:34 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...