This project is a simple desktop-based Task Manager tool created using Java Swing.
It allows users to view running processes, check CPU and memory usage, search for specific processes, refresh the list, and terminate processes directly from the interface.
Displays:
- PID
- Process Name
- CPU Usage (%)
- Memory Usage (MB)
- Search using process name or PID.
- Filters the table to show only matching processes.
- Select any process in the table and click Kill Process to terminate it.
- Uses the
taskkillcommand internally.
- Reloads the complete list of running processes.
- Clears the search box.
- Reloads the full process list automatically.
- Java (JDK 8 or above)
- Java Swing (GUI)
- PowerShell Commands (for fetching process details)
- JTable + DefaultTableModel (for displaying data)
The application internally runs the following PowerShell command: Get-Process | Select-Object Name,Id,CPU,WorkingSet
It extracts:
Nameβ Process NameIdβ PIDCPUβ CPU usageWorkingSetβ Memory usage (converted from bytes β MB)
These values are formatted and displayed in a table.
-
Install Java 8+ on your system.
-
Save the project file:
-
Open a terminal in the same directory and run:
javac TaskManagerTool.java
java TaskManagerTool