Skip to content

An application that creates a random color palette with a click of a button using Java Swing components.

Notifications You must be signed in to change notification settings

trong0dn/PaletteGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

PaletteGenerator

[Version 1.0]
March 29, 2021

DESCRIPTION

  • 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

INSTALLATION

This program was created and tested on Windows 10.

Installation Dependencies

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.

USAGE

Program Compilation

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

Application Architecture

    The PaletteGenerator will have three sections:
  1. Header: Contains only a label with a title.
  2. 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.
  3. Footer: A single JButton that we can click to generate a new palette.

Sample Display

sc

CREDITS

Thanks to the TAs and Instructor of my Object-Oriented Software Development course for the initial idea.

About

An application that creates a random color palette with a click of a button using Java Swing components.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages