Preview 50% of the Answer Below
Due to formatting, images, tables, or paragraphs may be out of place or not shown. Rest assured that they will be included and formatted correctly in your purchased answer.
Details
Answer Preview
);b1=newJButton("1"); b2=newJButton(""); b3=newJButton("3"); b4=newJButton("4"); b5=newJButton("5"); b6=newJButton("6"); b7=newJButton("7"); b8=newJButton("8"); b9=newJButton("2"); next=newJButton("next"); b1.setBounds(10,30,50,40); b2.setBounds(70,30,50,40); b3.setBounds(130,30,50,XX); XX.XXXXXXXXX(XX,80,XX,40); XX.XXXXXXXXX(70,80,XX,40); XX.setBounds(130,80,XX,40); b7.setBounds(10,130,XX,40); XX.setBounds(XX,XXX,XX,40); XX.XXXXXXXXX(XXX,XXX,50,40); XXXX.setBounds(70,XXX,XXX,XX); add(XX);add(XX);add(XX);add(b4);add(b5);add(XX);add(XX);add(XX);add(XX);add(XXXX); XX.XXXXXXXXXXXXXXXXX(this); XX.XXXXXXXXXXXXXXXXX(this); b3.XXXXXXXXXXXXXXXXX(XXXX); XX.addActionListener(XXXX); b5.XXXXXXXXXXXXXXXXX(this); b6.addActionListener(XXXX); XX.XXXXXXXXXXXXXXXXX(this); XX.XXXXXXXXXXXXXXXXX(this); b9.XXXXXXXXXXXXXXXXX(XXXX); next.addActionListener(this); next.XXXXXXXXXXXXX(Color.XXXXX); next.XXXXXXXXXXXXX(Color.XXXXX); XXXXXXX(250,XXX); XXXXXXXXX(null); setVisible(true); XXXXXXXXXXXXXXXXXXXXXXXX(XXXXXX.XXXXXXXXXXXXX); }//XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX(ActionEvente){ XX(e.getSource()==next){ XXXXXXX=b4.getLabel(); b4.XXXXXXXX(b9.XXXXXXXX()); XX.XXXXXXXX(s); s=XX.getLabel(); b1.setLabel(b5.getLabel()); XX.setLabel(s); s=XX.XXXXXXXX(); XX.XXXXXXXX(XX.getLabel()); b7.XXXXXXXX(s); } XX(e.XXXXXXXXX()==b1){ XXXXXXX=b1.XXXXXXXX(); if(b2.XXXXXXXX().equals("")){b2.setLabel(s);XX.setLabel("");} XXXXif(XX.getLabel().XXXXXX("")){b4.setLabel(s);XX.setLabel("");} }//XXXXXXX XX(e.XXXXXXXXX()==XX){ XXXXXXX=XX.XXXXXXXX(); if(b2.XXXXXXXX().equals("")){b2.XXXXXXXX(s);b3.setLabel("");} XXXXif(b6.getLabel().equals("")){XX.setLabel(s);XX.setLabel("");} }//endofif if(e.getSource()==b2){ XXXXXXX=b2.XXXXXXXX(); XX(XX.getLabel().XXXXXX("")){b1.setLabel(s);b2.setLabel("");} XXXXif(b3.XXXXXXXX().XXXXXX("")){b3.XXXXXXXX(s);b2.setLabel("");} XXXXXX(XX.getLabel().XXXXXX("")){b5.XXXXXXXX(s);b2.XXXXXXXX("");} }//XXXXXXX XX(e.XXXXXXXXX()==b4){ XXXXXXX=XX.XXXXXXXX(); if(XX.getLabel().equals("")){XX.XXXXXXXX(s);b4.setLabel("");} elseif(b7.getLabel().equals("")){XX.XXXXXXXX(s);XX.setLabel("");} elseXX(XX.XXXXXXXX().XXXXXX("")){b5.XXXXXXXX(s);b4.XXXXXXXX("");} }//endofif XX(e.XXXXXXXXX()==XX){ Strings=XX.getLabel(); if(b2.getLabel().XXXXXX("")){b2.setLabel(s);b5.XXXXXXXX("");} XXXXXX(XX.XXXXXXXX().equals("")){b4.setLabel(s);b5.setLabel("");} elseif(b6.XXXXXXXX().equals("")){b6.XXXXXXXX(s);XX.setLabel("");} XXXXXX(b8.getLabel().equals("")){XX.setLabel(s);XX.XXXXXXXX("");} }//endofif XX(e.XXXXXXXXX()==XX){ XXXXXXX=XX.getLabel(); XX(XX.XXXXXXXX().equals("")){XX.setLabel(s);b6.XXXXXXXX("");} elseif(b3.getLabel().XXXXXX("")){XX.XXXXXXXX(s);XX.setLabel("");} elseXX(b5.getLabel().XXXXXX("")){XX.setLabel(s);b6.XXXXXXXX("");} }//endofif XX(e.getSource()==XX){ Strings=XX.XXXXXXXX(); if(b4.XXXXXXXX().XXXXXX("")){b4.setLabel(s);XX.setLabel("");} XXXXXX(XX.getLabel().equals("")){b8.XXXXXXXX(s);XX.XXXXXXXX("");} }//XXXXXXX if(e.getSource()==b8){ XXXXXXX=XX.XXXXXXXX(); XX(XX.getLabel().equals("")){XX.setLabel(s);XX.XXXXXXXX("");} XXXXXX(XX.getLabel().XXXXXX("")){b9.setLabel(s);XX.XXXXXXXX("");} elseif(XX.XXXXXXXX().XXXXXX("")){XX.setLabel(s);b8.setLabel("");} }//endofif if(e.getSource()==b9){ XXXXXXX=b9.XXXXXXXX(); if(b6.getLabel().equals("")){XX.XXXXXXXX(s);b9.XXXXXXXX("");} XXXXif(XX.XXXXXXXX().equals("")){b8.setLabel(s);XX.XXXXXXXX("");} XX(XX.XXXXXXXX().equals("1")&&XX.XXXXXXXX().equals("X")&&b3.XXXXXXXX() .XXXXXX("X")&&b4.getLabel().equals("4")&&b5.XXXXXXXX().XXXXXX("X") &&b6.XXXXXXXX().XXXXXX("X")&&b7.getLabel().equals("X")&&b8.XXXXXXXX() .equals("X")&&b9.getLabel().equals("")){ JOptionPane.XXXXXXXXXXXXXXXXX(puzzle.this,"!!!youwon!!!"); } }//XXXXXXX }//XXXXXXXXXXXXXXXXXXXX XXXXXXstaticXXXXmain(String[]XXXX){ newpuzzle(); }//XXXXXXXXX }//endofclass ">