No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
in this part of the code which i'm using to search if an account number given by the user is in the vector. what is the cause of the problem ? thanks in advance. if (ae.getSource() == b7) { boolean found = false; for (int i = 0; i < … |
|
I'm trying to write an applet with menus but is not working I'm getting these errors: load: MenuFrame$AppletMenu.class can't be instantiated. java.lang.InstantiationException: MenuFrame$AppletMenu at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at sun.applet.AppletPanel.createApplet(Unknown Source) at sun.applet.AppletPanel.runLoader(Unknown Source) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source) could some one please explain me what is wrong. … |
|
i got a problem to make a program where i should use arrays the problem is in the next part, even though all the for loops are the same in this array `results[4][5] = i; // problem here nothing gets stored` nothing gets stored, so when i run the program … |
|
Hi i gotta display 2 arrays on screen but they don't look good i was wondering how can i make it look like this: Speed 20 88 75 80 68 77 81 Focus 30 90 77 83 71 84 85 Jetta 40 94 80 85 76 91 90 Contour 50 … |
|
the applet compiles fine(no errors) but while running when i press the accountButton(only button in the applet) i get errors, what is wrong with my applet ? thanks in advance Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException at AppletMetodos.actionPerformed(AppletMetodos.java:96) at java.awt.Button.processActionEvent(Unknown Source) at java.awt.Button.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at … |
|
hi. i got some problems with the dot and the C in th calculator i'm making. 1. when i press the C button it clears the screen but the next number i enter is also ignored even though it appears on the screen. 2. the dot is not working as … |
|
I wrote this program, when i run it, everything seems to work ok, but in the eclipse console i get a long list of errors, what is wrong with my program and how should i fix it? thanks import java.applet.Applet; import java.awt.Color; import java.awt.Graphics; import java.awt.List; import java.awt.event.ItemEvent; import java.awt.event.ItemListener; … |