Rompecabezas
VentanaPrincipal.java package com.dansan.rompecabezas; import java.awt.Graphics2D; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.image.BufferedImage; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.util.logging.Level; import java.util.logging.Logger; import javax.imageio.ImageIO; import javax.swing.Icon; import javax.swing.ImageIcon; import javax.swing.JFileChooser; import javax.swing.JFrame; import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JMenuItem; import javax.swing.JPanel; /** * * @author dansan */ public class VentanaPrincipal extends JFrame implements ActionListener { private static final int col = 3; private static final int fila = 3; private static final int colfila = col * fila; private JPanel panelCasilleros; private BufferedImage imgs[] = new BufferedImage[colfila]; privat