Jun 17, 2025
Оfftopic Community
Оfftopic Community
Forums
New posts
Search forums
What's new
Featured content
New posts
New media
New media comments
New resources
New profile posts
Latest activity
Media
New media
New comments
Search media
Resources
Latest reviews
Search resources
Members
Current visitors
New profile posts
Search profile posts
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Discussions
Games
Help with Java Applet due to error messages coming from Java Console.?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="echoeee" data-source="post: 1695277" data-attributes="member: 649410"><p>errors:Exception in thread "thread applet-Applet_Test.class-4" java.lang.NoClassDefFoundError: Applet_Test$1</p><p>at Applet_Test.init(Applet_Test.java:25)</p><p>at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)</p><p>at java.lang.Thread.run(Unknown Source)</p><p>source code:</p><p></p><p>import javax.swing.JTextField;</p><p></p><p>/*</p><p> * To change this template, choose Tools | Templates</p><p> * and open the template in the editor.</p><p> */</p><p></p><p>/*</p><p> * fdsjlak.java</p><p> *</p><p> * Created on Mar 17, 2009, 5:12:51 PM</p><p> */</p><p></p><p>/**</p><p> *</p><p> * @author Rahul</p><p> */</p><p></p><p>public class Applet_Test extends javax.swing.JApplet {</p><p></p><p> /** Initializes the applet fdsjlak */</p><p> public void init() {</p><p> try {</p><p> java.awt.EventQueue.invokeAndWait(new Runnable() {</p><p> public void run() {</p><p> initComponents();</p><p> }</p><p> });</p><p> } catch (Exception ex) {</p><p> ex.printStackTrace();</p><p> }</p><p> jButton2.setSize(0, 0);</p><p> if (t==2){</p><p> jTextField1.setSize(0,0);</p><p> jTextField3.setSize(0,0);</p><p> jTextField5.setSize(0,0);</p><p> jTextField7.setSize(0,0);</p><p> jTextField9.setSize(0,0);</p><p> jTextField11.setSize(0,0);</p><p> jTextField13.setSize(0,0);</p><p> jTextField15.setSize(0,0);</p><p> jTextField17.setSize(0,0);</p><p> jTextField19.setSize(0,0);</p><p> </p><p> }</p><p> }</p><p></p><p> </p><p></p><p> /** This method is called from within the init() method to</p><p> * initialize the form.</p><p> * WARNING: Do NOT modify this code. The content of this method is</p><p> * always regenerated by the Form Editor.</p><p> */</p><p> @SuppressWarnings("unchecked")</p><p> // <editor-fold defaultstate="collapsed" desc="Generated Code"> </p><p> private void initComponents() {</p><p></p><p> jLabel1 = new javax.swing.JLabel();</p><p> jTextField1 = new javax.swing.JTextField();</p><p> jTextField2 = new javax.swing.JTextField();</p><p> jLabel2 = new javax.swing.JLabel();</p><p> jTextField3 = new javax.swing.JTextField();</p><p> jLabel3 = new javax.swing.JLabel();</p><p> jTextField4 = new javax.swing.JTextField();</p><p> jTextField5 = new javax.swing.JTextField();</p><p> jLabel4 = new javax.swing.JLabel();</p><p> jTextField6 = new javax.swing.JTextField();</p><p> jTextField7 = new javax.swing.JTextField();</p><p> jLabel5 = new javax.swing.JLabel();</p><p> jTextField8 = new javax.swing.JTextField();</p><p> jTextField9 = new javax.swing.JTextField();</p><p> jLabel6 = new javax.swing.JLabel();</p><p> jTextField10 = new javax.swing.JTextField();</p><p> jTextField11 = new javax.swing.JTextField();</p><p> jLabel7 = new javax.swing.JLabel();</p><p> jTextField12 = new javax.swing.JTextField();</p><p> jTextField13 = new javax.swing.JTextField();</p><p> jLabel8 = new javax.swing.JLabel();</p><p> jTextField14 = new javax.swing.JTextField();</p><p> jTextField15 = new javax.swing.JTextField();</p><p> jLabel9 = new javax.swing.JLabel();</p><p> jTextField16 = new javax.swing.JTextField();</p><p> jTextField17 = new javax.swing.JTextField();</p><p> jLabel10 = new javax.swing.JLabel();</p><p> jTextField18 = new javax.swing.JTextField();</p><p> jTextField19 = new javax.swing.JTextField();</p><p> jLabel11 = new javax.swing.JLabel();</p><p> jTextField20 = new javax.swing.JTextField();</p><p> jButton1 = new javax.swing.JButton();</p><p> jButton2 = new javax.swing.JButton();</p><p></p><p> addMouseListener(new java.awt.event.MouseAdapter() {</p><p> public void mouseEntered(java.awt.event.MouseEvent evt) {</p><p> formMouseEntered(evt);</p><p> }</p><p> });</p><p></p><p> jLabel1.setText("Put the questions and the answers to your questions in the boxes below, then DOUBLE CLICK done. Please note if you don't enter anything in the box the question and answer will end up being nothing.");</p><p></p><p> jTextField1.setText("Question");</p><p></p><p> jTextField2.setText("Answer");</p><p></p><p> jLabel2.setText("Your First Question and Answer");</p><p></p><p> jTextField3.setText("Question");</p><p></p><p> jLabel3.setText("Your Second Question and Answer");</p><p></p><p> jTextField4.setText("Answer");</p><p></p><p> jTextField5.setText("Question");</p><p></p><p> jLabel4.setText("Your Third Question and Answer");</p><p></p><p> jTextField6.setText("Answer");</p><p></p><p> jTextField7.setText("Question");</p><p></p><p> jLabel5.setText("Your Fourth Question and Answer");</p><p></p><p> jTextField8.setText("Answer");</p><p></p><p> jTextField9.setText("Question");</p><p></p><p> jLabel6.setText("Your Fifth Question and Answer");</p><p></p><p> jTextField10.setText("Answer");</p><p></p><p> jTextField11.setText("Question");</p><p></p><p> jLabel7.setText("Your Sixth Question and Answer");</p><p></p><p> jTextField12.setText("Answer");</p><p></p><p> jTextField13.setText("Question");</p><p></p><p> jLabel8.setText("Your Seventh Question and Answer");</p><p></p><p> jTextField14.setText("Answer");</p><p></p><p> jTextField15.setText("Question");</p><p></p><p> jLabel9.setText("Your Eighth Qu</p></blockquote><p></p>
[QUOTE="echoeee, post: 1695277, member: 649410"] errors:Exception in thread "thread applet-Applet_Test.class-4" java.lang.NoClassDefFoundError: Applet_Test$1 at Applet_Test.init(Applet_Test.java:25) at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source) at java.lang.Thread.run(Unknown Source) source code: import javax.swing.JTextField; /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /* * fdsjlak.java * * Created on Mar 17, 2009, 5:12:51 PM */ /** * * @author Rahul */ public class Applet_Test extends javax.swing.JApplet { /** Initializes the applet fdsjlak */ public void init() { try { java.awt.EventQueue.invokeAndWait(new Runnable() { public void run() { initComponents(); } }); } catch (Exception ex) { ex.printStackTrace(); } jButton2.setSize(0, 0); if (t==2){ jTextField1.setSize(0,0); jTextField3.setSize(0,0); jTextField5.setSize(0,0); jTextField7.setSize(0,0); jTextField9.setSize(0,0); jTextField11.setSize(0,0); jTextField13.setSize(0,0); jTextField15.setSize(0,0); jTextField17.setSize(0,0); jTextField19.setSize(0,0); } } /** This method is called from within the init() method to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code"> private void initComponents() { jLabel1 = new javax.swing.JLabel(); jTextField1 = new javax.swing.JTextField(); jTextField2 = new javax.swing.JTextField(); jLabel2 = new javax.swing.JLabel(); jTextField3 = new javax.swing.JTextField(); jLabel3 = new javax.swing.JLabel(); jTextField4 = new javax.swing.JTextField(); jTextField5 = new javax.swing.JTextField(); jLabel4 = new javax.swing.JLabel(); jTextField6 = new javax.swing.JTextField(); jTextField7 = new javax.swing.JTextField(); jLabel5 = new javax.swing.JLabel(); jTextField8 = new javax.swing.JTextField(); jTextField9 = new javax.swing.JTextField(); jLabel6 = new javax.swing.JLabel(); jTextField10 = new javax.swing.JTextField(); jTextField11 = new javax.swing.JTextField(); jLabel7 = new javax.swing.JLabel(); jTextField12 = new javax.swing.JTextField(); jTextField13 = new javax.swing.JTextField(); jLabel8 = new javax.swing.JLabel(); jTextField14 = new javax.swing.JTextField(); jTextField15 = new javax.swing.JTextField(); jLabel9 = new javax.swing.JLabel(); jTextField16 = new javax.swing.JTextField(); jTextField17 = new javax.swing.JTextField(); jLabel10 = new javax.swing.JLabel(); jTextField18 = new javax.swing.JTextField(); jTextField19 = new javax.swing.JTextField(); jLabel11 = new javax.swing.JLabel(); jTextField20 = new javax.swing.JTextField(); jButton1 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent evt) { formMouseEntered(evt); } }); jLabel1.setText("Put the questions and the answers to your questions in the boxes below, then DOUBLE CLICK done. Please note if you don't enter anything in the box the question and answer will end up being nothing."); jTextField1.setText("Question"); jTextField2.setText("Answer"); jLabel2.setText("Your First Question and Answer"); jTextField3.setText("Question"); jLabel3.setText("Your Second Question and Answer"); jTextField4.setText("Answer"); jTextField5.setText("Question"); jLabel4.setText("Your Third Question and Answer"); jTextField6.setText("Answer"); jTextField7.setText("Question"); jLabel5.setText("Your Fourth Question and Answer"); jTextField8.setText("Answer"); jTextField9.setText("Question"); jLabel6.setText("Your Fifth Question and Answer"); jTextField10.setText("Answer"); jTextField11.setText("Question"); jLabel7.setText("Your Sixth Question and Answer"); jTextField12.setText("Answer"); jTextField13.setText("Question"); jLabel8.setText("Your Seventh Question and Answer"); jTextField14.setText("Answer"); jTextField15.setText("Question"); jLabel9.setText("Your Eighth Qu [/QUOTE]
Insert quotes…
Name
Verification
Please enable JavaScript to continue.
Loading…
Post reply
Top