30 lines
674 B
Java
30 lines
674 B
Java
package treeModel;
|
|
|
|
import java.awt.*;
|
|
import javax.swing.*;
|
|
|
|
/**
|
|
* This program demonstrates how to use a custom tree model. It displays the fields of an object.
|
|
* @version 1.04 2012-01-26
|
|
* @author Cay Horstmann
|
|
*/
|
|
public class ObjectInspectorTest
|
|
{
|
|
public static void main(String[] args)
|
|
{
|
|
EventQueue.invokeLater(new Runnable()
|
|
{
|
|
public void run()
|
|
{
|
|
JFrame frame = new ObjectInspectorFrame();
|
|
frame.setTitle("ObjectInspectorTest");
|
|
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
|
frame.setVisible(true);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
|