That and it's sometimes cloning the first digit.
Type: Posts; User: javapenguin
That and it's sometimes cloning the first digit.
^:)^^:)^#-o#-o#-o#-o#-o#-o#-o#-o#-o#-o#-o#-o#-o
I see now what might be the problem. The decimal point is never being pushed over.
That's only supposed to be updating the String to include the new char. The String was originally blank and having the text from the JTextField pushed into it one char at a time till the condition...
What was the try catch for? Also, why is the first digit repeating a bunch of times and then adding that to my exponent?
import javax.swing.*;
import java.awt.*;
import...
Oh, I see, the i value wasn't going up inside the while loop. I feared that might happen, but I didn't know that's what was causing the error. Also, the code still is glitched. It's repeating the...
I showed what was the problem with the pictures. I thought you'd see them.
Updated again. Still having problems.
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.*;
import java.util.*;
import java.io.*;
Also, I might add that I can't exit out of the "Black Screen of Doom" window by hitting the X button or even hitting the Close Window with Windows. I don't mean that the program still runs after I...
Well, these two pictures might help kinda clarify things.
The before and enter are after I hit enter and activate the Action Listener.
Code has been updated.
import javax.swing.JFrame;...
Ok, It's not even going into the loops. I told it to println() the i values and it didn't print anything. The stupid JFrame just turns black and I have to shut it off with the big red button.
import javax.swing.JFrame;
import javax.swing.*;
import java.util.*;
import java.io.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;