Revision 11440 trunk/libraries/libUIComponent/src-test/org/gvsig/gui/beans/treelist/TestTreeList.java

View differences:

TestTreeList.java
1 1
package org.gvsig.gui.beans.treelist;
2 2

  
3
import java.awt.event.ComponentEvent;
4
import java.awt.event.ComponentListener;
5

  
6 3
import javax.swing.JFrame;
7 4
import javax.swing.UIManager;
8 5

  
9 6
import org.gvsig.gui.beans.table.exceptions.NotInitializeException;
10 7

  
11
public class TestTreeList implements ComponentListener{
8
public class TestTreeList {
12 9
	private int 					w = 200, h = 380;
13 10
	private JFrame 					frame = new JFrame();
14 11
	private TreeListContainer		tlist;
......
36 33
		
37 34
		frame.getContentPane().add(tlist);
38 35
		frame.setSize(w, h);
39
		frame.addComponentListener(this);
40 36
		frame.setVisible(true);
41 37
		frame.setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
42 38
	}
......
53 49
			System.out.println("Tabla no inicializado");
54 50
		}
55 51
	}
56

  
57
	public void componentHidden(ComponentEvent e) {
58
		// TODO Auto-generated method stub
59
	}
60

  
61
	public void componentMoved(ComponentEvent e) {
62
		// TODO Auto-generated method stub
63
	}
64

  
65
	public void componentResized(ComponentEvent e) {
66
		tlist.setComponentSize(frame.getWidth() - 10, frame.getHeight() - 20);
67
	}
68

  
69
	public void componentShown(ComponentEvent e) {
70
		// TODO Auto-generated method stub
71
	}
72 52
}

Also available in: Unified diff