Write a complete Java program that prompts the user to input two integer values and outputs the largest and smallest numbers. The program includes JOptionPane for both the input and output statements.