An open API service indexing awesome lists of open source software.

https://github.com/learnwithfair/java-swing-documentation

java-swing-documentation with [learnwithfair, Learn with fair, Rahatul Rabbi, Md Rahatul Rabbi ,rahatulrabbi]
https://github.com/learnwithfair/java-swing-documentation

documentation java java-swing learn-with-fair learnwithfair oop rahatul-rabbi rahatulrabbi swing

Last synced: 20 days ago
JSON representation

java-swing-documentation with [learnwithfair, Learn with fair, Rahatul Rabbi, Md Rahatul Rabbi ,rahatulrabbi]

Awesome Lists containing this project

README

          

# JAVA-SWING-DOCUMENTATION

Thanks for visiting my GitHub account!

**Swing** in Java is a lightweight GUI toolkit that has a wide variety of widgets for building optimized window-based applications. It is a part of the JFC( Java Foundation Classes). It is built on top of the AWT API and entirely written in Java. It is platform-independent unlike AWT and has lightweight components. It is used for creating window-based applications. It includes components like button, scroll bar, text field etc.[See More](https://www.javatpoint.com/java-swing)

### [Code-Example](https://github.com/learnwithfair/java-swing)

### Swing Classes Hierarchy

| |
| :-------------------------------------------------------------------------------------------: |
| ![Hierarchy](https://github.com/learnwithfair/java-swing/blob/main/images/swinghierarchy.jpg) |

## Source Code (Download)

- [Documentation](https://mega.nz/folder/RGFiUApD#PoKIVCwF8IkQhE2PHw1XxQ)
- [Source-code](https://mega.nz/folder/8KsSgRAD#Jp8oa1AgWxOyC4UPfsiPDg)

## Compiling and Running Swing Programs

This section explains how to compile and run a Swing application from the command line. For information on compiling and running a Swing application using NetBeans IDE, see Running Tutorial Examples in NetBeans IDE. The compilation instructions work for all Swing programs — applets, as well as applications. Here are the steps you need to follow:

- Install the latest release of the Java SE platform, if you haven't already done so (JDK).
- Setup Environment variable for JDk
- Install IDE such as NetBeans, Eclipse
- Create a program that uses Swing components.
- Compile the program.
- Run the program.

```diff
- Note: File name and class name must be the same.

```

## Environment variable Setup

--- To set java path ---

1. Right-click on "My computer" and click on properties
2. Click on "Advanced system settings"
3. Click on "Environment variables"
4. Click on the new tab of a user variable
5. Write the path in a variable name
6. Copy the path of the bin folder ( `C:\Program Files\Java\jdk-21\bin`)
7. Paste the path of the bin folder in the variable value
8. Click OK
9. For Check, write the command in the CMD `java -version` Or, `javac -version`

[See More](https://stackoverflow.com/questions/1672281/how-to-set-the-environment-variables-for-java-in-windows)

## Required Software (Download)

- JDK, Download-> https://www.oracle.com/java/technologies/downloads/#jdk21-windows
- NetBeans, Download-> https://netbeans.apache.org/front/main/download/nb122/nb122/
- Or, Eclipse, Download-> https://www.eclipse.org/downloads/download.php?file=/oomph/epp/2023-12/R/eclipse-inst-jre-win64.exe

## For Advance, Connect Database (JDBC)

- Connect MS Access database, visit-> https://www.youtube.com/watch?v=MbDoMexPcYc

## Required Software (Download)

- UCanAccess, Download-> https://sourceforge.net/projects/ucanaccess/
- WindowBuilder, Download-> https://download.eclipse.org/windowbuilder/updates/release/latest/

## Enable TCP_IP Error

1. Go to Manage by clicking on Desktop Computer
2. Go to Service and Applications
3. Go to SQL Server Configuration Manager
4. Go to SQL Server Network Configuration
5. Go to Protocol for MSSQLSERVER
6. Then TCP/IP Enable.
7. Go to SQL Server Services Restart All (Example...Sql server browser, SQL server(MSS..))

## Project Screenshot

| | |
| :------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------: |
| Calculator | Vowel Counter |
| ![Calculator](https://github.com/learnwithfair/java-swing/blob/main/images/calculator.png) | ![Vowel-Counter](https://github.com/learnwithfair/java-swing/blob/main/images/Vowel%20Counter-1.png) |
| Multiplication Table | Slider |
| ![multiplication](https://github.com/learnwithfair/java-swing/blob/main/images/Multiplication-table.png) | ![Slider](https://github.com/learnwithfair/java-swing/blob/main/images/Slide-show.png) |
| Form Fillup | Vitualization |
| ![Form-Fillup](https://github.com/learnwithfair/java-swing/blob/main/images/Form-fill-up.png) | ![Vitualization](https://github.com/learnwithfair/java-swing/blob/main/images/Form-Fill-up%20details.png) |
| Registration | Advance |
| ![Registration](https://github.com/learnwithfair/java-swing/blob/main/images/registration.png) | ![advance](https://github.com/learnwithfair/java-swing/blob/main/images/advance.png) |

## Follow Me

[Facebook](http://facebook.com/learnwithfair), [Youtube](http://youtube.com/@learnwithfair), [Instagram](http://instagram.com/learnwithfair)