/*
 * DNDTest.java
 *
 * Created on 24. únor 2001, 11:23
 */

package timetable.gui;

/**
 *
 * @author  Administrator
 * @version 
 */
public class DNDTest extends javax.swing.JDialog {

    /** Creates new form DNDTest */
    public DNDTest(java.awt.Frame parent,boolean modal) {
        super (parent, modal);
        initComponents ();
        pack ();
        DNDTable t1 = new DNDTable();
        t1.setModel(new javax.swing.table.DefaultTableModel(10,10));
        DNDTable t2 = new DNDTable();
        t2.setModel(new javax.swing.table.DefaultTableModel(5,5));
        jScrollPane1.setViewportView(t1);
        jScrollPane2.setViewportView(t2);
        jScrollPane2.setPreferredSize(new java.awt.Dimension(100,100));
        DNDTableEngine e = new DefaultDNDTableEngine();
        t1.setDNDTableEngine(e);
        t2.setDNDTableEngine(e);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the FormEditor.
     */
    private void initComponents() {//GEN-BEGIN:initComponents
        jScrollPane1 = new javax.swing.JScrollPane();
        jScrollPane2 = new javax.swing.JScrollPane();
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosing(java.awt.event.WindowEvent evt) {
                closeDialog(evt);
            }
        }
        );
        
        
        getContentPane().add(jScrollPane1, java.awt.BorderLayout.CENTER);
        
        
        
        getContentPane().add(jScrollPane2, java.awt.BorderLayout.SOUTH);
        
    }//GEN-END:initComponents

    /** Closes the dialog */
    private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog
        setVisible (false);
        dispose ();
    }//GEN-LAST:event_closeDialog

    /**
    * @param args the command line arguments
    */
    public static void main (String args[]) {
        new DNDTest (new javax.swing.JFrame (), true).show ();
    }


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    // End of variables declaration//GEN-END:variables

}
