Skip to content

bjanos/SimpleCalculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SimpleCalculator

Features

JavaFX, CSS

Description

A very simple calculator, that can perform 4 basic operations:

  • addition
  • subtraction
  • division
  • multiplication

The tool just shows a quick example on JavaFX MVC implementation. The content window is styled with a cascading stylesheet.

Structure

Packages

  • app: contains calculation related classes

  • main: contains the FXML for the layout, the Controller class and the Main class to start the application

  • res: contains the resource file for internalisation. As the application is not translated into other languages, this only serves to separate descriptions from layout, so that they are not hardcoded.

  • style: contains the CSS file to style the layout

Hands On

Calculator Screen:

Simple Calculator screen

Negative numbers are understood by the calculator:

Negative Numbers

Once a calculation is done, the result becomes the first operand of the calculaltion and a new one can be initiated by clicking on one of the operands.

About

Simple 4 operation calculator with JavaFX

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published