вроде этой👇
import java .awt .*;
import java .awt .event
import javax . swing .* ;
public class Calculat
{
public static voi
EventQueue . in
{
public vo
Calcu
frame
frame
}
}) ;
}
}
class CalculatorFrame
public Calculator
setTitle ("Cal
CalculatorPan
add (panel ) ;
pack () ;
}
}
class CalculatorPanel
public Calculator
setLayout (new
result = 0;
lastCommand =
start =true;
display = new
display . setEn
add (display,
ActionListene
ActionListene
panel = new J
panel .setLayo
addButton ("7"
addButton ("8"
addButton ("9"
addButton ("/"
addButton ("4"
addButton ("5"
addButton ("6"
addButton ("*"
addButton ("1"
addButton ("2"
addButton ("3"
addButton ("-"
addButton ("0"
addButton ("."
addButton ("="
addButton ("+"