Skip to content

alizeidil/NETBEANS-Tutorial-with-JFrame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MY FIRST JFRAME APPS on NETBEANS

FIRST OF ALL , huge thanks to Mukul Saini Skills !

This project was developed for educational purposes following the tutorials of Mukul Saini. I built it to practice Java Swing and GUI logic.

The aim: These projects help me understand GUI development and improve my hands-on coding skills.

Building Simple Calculator

Previously, operators like '+' were hidden during input.So at the first time I couldn't understand whether the calculator works or not . Now, the display shows the full expression (e.g., 2 + 2) in real-time for better clarity.

Distance Speed Time Calculator

A basic,practical desktop application built with Java Swing that calculates Distance, Speed, or Time based on user input. This project helped me to understand the gap between theoretical math formulas and real-world GUI application logic.

What I Learned & Applied

  • Input Handling: Converting String inputs from text fields into double for calculations using Double.parseDouble().
  • Precision Control: Used String.format("%.2f", value) to ensure results are clean and rounded to 2 decimal places (e.g., showing 3.33 instead of 3.33333333).
  • User Feedback: Mastered the use of JOptionPane for error handling and information dialogs.
  • Special thanks to Mkyong.com for the detailed examples of showMessageDialog versions.

Mini Piano

In this project, I built a Mini Piano by following Mukul Saini's tutorials to practice Java Swing and audio handling. I implemented a sound system using AudioInputStream and Clip within a try-catch block for error management. Additionally, I encountered a GUI challenge where the background color wouldn't update through the properties panel; I resolved this by forcing the color change using getContentPane().setBackground()

I learned in this project :

  • Audio Handling: Using AudioSystem to load and play .wav files.

  • Error Management: Wrapping sensitive operations in try-catch blocks.

  • GUI Customization: bypassing IDE limitations by using getContentPane().setBackground() to ensure the background displays as pink.

About

These are my very first little desktop applications built with Java Swing (JFrame) with aid of " Mukul Saini Skills ". I developed these projects to understand how event-driven programming and GUI components work together in Java.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages