package com.capitalistleptonrill.enzka.view;

import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JPanel;


public class PromptWindow extends JPanel {

	private static final long serialVersionUID = 1L;

	
	/**
	 * Creates a PromptWindow which asks for a color
	 */
	public static String askWildColor(JFrame frame) {
		Object[] possibilities = {"Red", "Green", "Blue", "Yellow"};
        String s = (String)JOptionPane.showInputDialog(
                            frame,
                            "Choose a color:\n",
                            "Prompt",
                            JOptionPane.PLAIN_MESSAGE,
                            null,
                            possibilities,
                            "ham");

        return s;
	}
	
	/**
	 * Creates a PromptWindow which asks to pass to the next player
	 */
	public void askToPass() {
	    JOptionPane.showMessageDialog(this,
	        "Pass to the next player and press OK",
	        "End of Turn",
	        JOptionPane.PLAIN_MESSAGE);
	}
}

@@ -102,35 +102,8 @@
 ne;%0A
-import javax.swing.JPanel;%0A
 %0A%0Apu
@@ -130,76 +130,9 @@
 dow 
-extends JPanel %7B%0A%0A%09private static final long serialVersionUID = 1L;%0A
+%7B
 %0A%09%0A%09
@@ -772,16 +772,28 @@
 kToPass(
+JFrame frame
 ) %7B%0A%09   
@@ -827,12 +827,13 @@
 log(
-this
+frame
 ,%0A%09 

Clean PromptWindow