import java.awt.*; public class movewin extends Dialog { riskaplt prnt; Button ok; TextField marmies; movewin(Frame pframe,riskaplt prnt) { super(pframe,"Move armies:",true); ok=new Button("Move"); TextField marmies=new TextField(6); marmies.setText("1"); add("North",new Label("How many armies to move?")); add("Center",marmies); add("South",ok); resize(100,200); } public boolean action(Event evt,Object arg) { if (arg.equals("Move")) { prnt.clickedmove(marmies.getText()); dispose(); } return true; } }