The Matrix Project, developed in Java and utilizing SceneBuilder for the GUI, is a comprehensive application designed for matrix operations and visualizations. This project offers a user-friendly interface to perform a variety of matrix calculations, including but not limited to, REF/RREF, inverting, multiplication, and determinant calculation. The use of SceneBuilder ensures a responsive and intuitive design, making complex matrix operations accessible to users of all levels.
- Matrix Operations: Perform basic operations like addition, subtraction, and multiplication. Advanced operations such as determinant calculation and matrix inversion are also supported.
- Interactive GUI: Developed with SceneBuilder, the GUI provides an intuitive and easy-to-navigate interface.
- Custom Matrix Input: Users can input custom matrices for operations, offering flexibility in calculations.
- Real-time Calculations: See results of operations in real-time, enhancing the user experience and understanding of matrix concepts.
- Error Handling: Includes robust error handling for invalid matrix operations and inputs, ensuring the application remains stable and user-friendly.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Ensure you have the following installed (refer to Installation for additional help.):
- Java JDK 8 or newer
- SceneBuilder (compatible with your Java version)
- An IDE that supports JavaFX (e.g., IntelliJ IDEA, Eclipse)
I use IntelliJ and Windows, so for installation, I will walk through how to get the project going using Windows.
-
If you haven't already, download IntelliJ:
- Go to IntelliJ Download Page.
- Download either the community version, or the ultimate version based on your needs.
- Go to your
downloads
file (or wherever you have your downloads from online go). - Click (or search)
ideaIC-2023.3.6
. - A pop up will appear.
- For the path destination, it should look something like
C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2023.3.6
- On the next page, click
.java
undercreate associations
. (Note: advanced programmers would know more about this. Look here for additional help.) - Select a file name, then download.
-
Now that you have IntelliJ installed, download the project to get started:
- Go up to the blue box that looks like this:
-
Open the dropdown menu and click
download zip
. -
Unzip the folder, and place in
IdeaProjects
. (This folder should be automatically downloaded with the installation of IntelliJ. -
Open IntelliJ. You should see a menu like this:
-
Click
Open
. -
Navigate to your
IdeaProjects
folder, and select the file namedMatrixDemoInJavaFX-master
. (You can keep or change this file name to whatever you want.)
-
To get started on the project:
-
Click on the gear next to the minimize button.
-
Click
Project Structure...
. You should be presented with a menu that looks like the picture below. -
Notice the underlined
+
. Click that button and proceed to download the JDK by using the options that are already filled in for you. -
Click
Apply
, and now configure your JDK at the top of the screen. -
There may be a yellow warning that says your JDK is not configured.
- Simply restart your IDE and wait. This is a large project, so indexing takes some time.
-
-
Install SceneBuilder:
- Go to this link.
- Scroll down to 'Download Scene Builder'.
- Click the first option, or whatever is relevant to your system.
- Open the installer from the folder you selected.
- Follow the prompts.
-
Add JavaFX to the project:
-
Download the JavaFX package from Gluon using this link.
-
Scroll down until you see the download for Windows.
- Be sure to download the SDK version.
-
Open IntelliJ and navigate to the project.
-
Click the 4 horizontal lines at the top left of the page (next to the IntelliJ icon) to access the
file
dropdown. -
Go to
Project Structure...
once again. -
Click the
Libraries
tab, and click the same+
as before. -
Click
From Java
. -
Search for
javafx-sdk-20.0.2
-
Click the arrow to expand the dropdown menu.
-
Go to
lib
and highlight the following, as shown in the picture below: -
Select
OK
andapply
. -
Note this may take a couple of tries. Consider trouble shooting sources in case you cannot get the library added properly. I consistently have problems adding this library, so don't be discouraged if it doesn't work the first time.
-
-
Add JUnit to the project:
- From the prior step, follow the same procedure until sub-step 3.
- This time, do not click
From Java
. Instead, clickFrom Maven
. - Type
JUnit
and the magnifying class next to the text box. - Scroll and search for the module,
junit:junit:4.13.2
. - Add to your project and close the window.
To use the application, follow these steps:
-
In the
Project
tab, navigate to theMatrixApp
class. It is located in the project hierarchy as shown: -
On line 16, click the green button to start the application.
I want to thank Dr. Gabriel Ferrer for initially teaching me how to set up IntelliJ and SceneBuilder.
Additionally, I'd like to thank Professor Lars Seme for teaching me the Linear Algebra methods that are employed in this program.
Without their guidance, I would not be able to make this project.