mirror of
https://github.com/DanilaFe/abacus
synced 2026-01-11 17:45:20 +00:00
Add more comments.
This commit is contained in:
@@ -3,26 +3,76 @@ package org.nwapw.abacus.window;
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
|
||||
/**
|
||||
* The main UI window for the calculator.
|
||||
*/
|
||||
public class Window extends JFrame {
|
||||
|
||||
/**
|
||||
* A collection of outputs from the calculator.
|
||||
*/
|
||||
private String history;
|
||||
/**
|
||||
* The last output by the calculator.
|
||||
*/
|
||||
private String lastOutput;
|
||||
|
||||
/**
|
||||
* The panel where the output occurs.
|
||||
*/
|
||||
private JPanel outputPanel;
|
||||
/**
|
||||
* The text area reserved for the last output.
|
||||
*/
|
||||
private JTextArea lastOutputArea;
|
||||
/**
|
||||
* The text area used for all history output.
|
||||
*/
|
||||
private JTextArea historyArea;
|
||||
/**
|
||||
* The scroll pane for the history area.
|
||||
*/
|
||||
private JScrollPane historyAreaScroll;
|
||||
|
||||
/**
|
||||
* The panel where the input occurs.
|
||||
*/
|
||||
private JPanel inputPanel;
|
||||
/**
|
||||
* The input text field.
|
||||
*/
|
||||
private JTextField inputField;
|
||||
/**
|
||||
* The "submit" button.
|
||||
*/
|
||||
private JButton inputEnterButton;
|
||||
|
||||
/**
|
||||
* The side panel for separate configuration.
|
||||
*/
|
||||
private JPanel sidePanel;
|
||||
/**
|
||||
* Panel for elements relating to number
|
||||
* system selection.
|
||||
*/
|
||||
private JPanel numberSystemPanel;
|
||||
/**
|
||||
* The possible list of number systems.
|
||||
*/
|
||||
private JComboBox<String> numberSystemList;
|
||||
private JButton functionSelectButton;
|
||||
/**
|
||||
* The panel for elements relating to
|
||||
* function selection.
|
||||
*/
|
||||
private JPanel functionSelectPanel;
|
||||
/**
|
||||
* The list of functions available to the user.
|
||||
*/
|
||||
private JComboBox<String> functionList;
|
||||
/**
|
||||
* The button used to select a function.
|
||||
*/
|
||||
private JButton functionSelectButton;
|
||||
|
||||
public Window() {
|
||||
super();
|
||||
|
||||
Reference in New Issue
Block a user