У меня графический интерфейс, похожий на мой калькулятор телефона, и теперь я пытаюсь сделать его функционирование.package org.example;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.security.PublicKey;
public class Frame extends JFrame implements ActionListener {
Frame()
{
this.setSize(500, 888);
this.setTitle("Adam's app");
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setResizable(true);
this.getContentPane().setBackground(new Color(0xFFFFFF));
this.setLayout(null);
// Creating each button and it's dimensions :
JButton mc_Button = new JButton("mc");
mc_Button.setBounds(0, 300, 125, 98);
JButton mPlus_Button = new JButton("m+");
mPlus_Button.setBounds(125, 300, 125, 98);
JButton mMinus_Button = new JButton("m-");
mMinus_Button.setBounds(250, 300, 125, 98);
JButton mr_Button = new JButton("mr");
mr_Button.setBounds(375, 300, 125, 98);
JButton C_Button = new JButton("C");
C_Button.setBounds(0, 398, 125, 98);
JButton DivideButton = new JButton("÷");
DivideButton.setBounds(125, 398, 125, 98);
JButton MultipleButton = new JButton("×");
MultipleButton.setBounds(250, 398, 125, 98);
JButton DeleteButton = new JButton("
Подробнее здесь: https://stackoverflow.com/questions/796 ... java-swing