Ok, somehow I lost my text, but I was gonna say, how do you get everything nicely in a layout?
I had it all written out but then I accidentally exited my browser somehow and lost all that I typed....
Type: Posts; User: javapenguin
Ok, somehow I lost my text, but I was gonna say, how do you get everything nicely in a layout?
I had it all written out but then I accidentally exited my browser somehow and lost all that I typed....
public class MyCalculator extends JFrame implements WindowListener{
private JButton zero, one, two, three, four, five, six, seven, eight, nine, times,
plus, minus, divide, clear, equals,...
package calculator;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import...
I'm trying to make a calculator.
I know how to handle it if the user hits 1 and + and 1 and then equals, but how do I get it to keep storing the values if the user enters 1+1 * 3 / 2 = (read...