An interactive Java Calculator built with Swing (NetBeans GUI Builder) and styled using FlatLaf.
This project supports basic arithmetic, number system conversions (Binary, Octal, Hexadecimal), and includes a Dark/Light Theme Toggle for a sleek and modern user experience.
✅ Basic Arithmetic Operations
- Addition (+)
- Subtraction (-)
- Multiplication (×)
- Division (÷)
✅ Number System Converter
- Convert Decimal → Binary, Octal, or Hexadecimal with one click.
✅ Backspace Function
- Easily remove the last input digit.
✅ On/Off Function
- Disable and enable buttons.
✅ Dark Mode Toggle
- Instantly switch between Light and Dark themes using FlatLaf.
✅ Built in NetBeans
- Fully designed using the NetBeans GUI Builder (Swing).
| Component | Description |
|---|---|
| Language | Java |
| UI Framework | Swing |
| Look & Feel | FlatLaf |
| IDE | Apache NetBeans |
git clone https://github.com/devmique/Java-Calculator-GUI-with-Binary-Oct-Hex-Converter.git
- Launch Apache NetBeans IDE.
- Go to File → Open Project.
- Navigate to the folder where you cloned or saved this project:
- Select the folder and click Open Project.
✅ Your project will now appear in the NetBeans "Projects" panel.
To enable the Dark/Light theme toggle, you must add the FlatLaf library:
-
Download the FlatLaf JAR file here:
👉 flatlaf-3.4.1.jar (Download) -
In NetBeans, right-click your project name in the sidebar → Properties
-
Navigate to Libraries → click Add JAR/Folder
-
Locate and select the downloaded
flatlaf-3.4.1.jar -
Click Open → then OK to save changes
✅ FlatLaf is now successfully added to your project.
You can now launch the calculator directly from NetBeans:
- Click the Run
▶️ button on the toolbar, or - Press Shift + F6 on your keyboard.
The GUI Calculator should now appear.
Use the Dark Mode toggle button to switch between Light and Dark themes 🌙☀️.