Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.awt.Color;

import javax.swing.JColorChooser;

public class Main {
    public static void main(String[] argv) {
        Color initialColor = Color.red;
        Color newColor = JColorChooser.showDialog(null, "Dialog Title", initialColor);
    }
}