[Version 1.0]
March 29, 2021
-
PaletteGenerator is an application that creates a random color palette with a click of a button using Java Swing components.
-
The application is composed of the following programs:
- PaletteGenerator.java
- Main.java
This program was created and tested on Windows 10.
The application should work with the most recent version of Java programming language updated to at least JDK 16.
No other supplementary libraries and testing file with modular dependencies are required to run this application.
Open Command Prompt on Windows OS and navigate to the directory containing the .java files in the following order to generate the .class files.
>>> javac PaletteGenerator.java >>> javac Main.java
To run the program in Command Prompt.
>>> java Main
-
The PaletteGenerator will have three sections:
- Header: Contains only a label with a title.
- Body: Contains 8 JPanels with associated lock JButtons that will represent our generated colour palette. Each colour JPanel will have an associated lock button, that when clicked will lock that colour panel so that if the generate button is clicked again, it will not change. A lock button can be unclicked, so if generate is clicked the colour panel will once again change.
- Footer: A single JButton that we can click to generate a new palette.
Thanks to the TAs and Instructor of my Object-Oriented Software Development course for the initial idea.