Page 926 - 2
P. 926

b.repaint();
                       } else if (isRangeof(6,p)) {
                               ThigauE2.g7 = true;
                               a.repaint();
                               b.repaint();
                       }


                       //  틀린부분을 다 찾으면 메세지 출력
                       if (ThigauE2.g1 == true && ThigauE2.g2 == true && ThigauE2.g3 == true && Thiga
            uE2.g4 == true && ThigauE2.g5 == true && ThigauE2.g6 == true && ThigauE2.g7 == true) {


                                // 다 완료하면 다시 시작을 위해 동그라미 갱신
                               if(ThigauEEx.count==0 && back.count2==0){
                                            new ThigauEEx("  우뇌상쾌통쾌 틀린그림전집");
                                            getContentPane().removeAll();
                                            setVisible(false);
                                            revalidate();
                                            repaint();
                                            ThigauEEx.count++;
                               }
                               else if(ThigauEEx.count==1 && back.count2==0){
                                       getContentPane().removeAll();
                                            setVisible(false);
                                            revalidate();
                                            repaint();
                                    Fin frame2 = new Fin();
                                          frame2.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                                          frame2.setSize(1000,662);
                                          frame2.setVisible(true);
                               }


                       }// if end
                      }// mouseReleased()
                     }//CustomMouseAdapter{}
            }


            class Fin extends JFrame{
                    JScrollPane scrollPane;
                ImageIcon icon;
                public Fin() {
                    icon = new ImageIcon("c:\\fin.jpg");
                    // 배경 Panel  생성후 컨텐츠페인으로 지정
                    JPanel background = new JPanel() {
                        public void paintComponent(Graphics g) {
                            g.drawImage(icon.getImage(), 0, 0, null);


                                                         - 926 -
   921   922   923   924   925   926   927   928   929