Files
corejava/corejava第9版/v2ch06/treeModel/ObjectInspectorTest.java
T
2019-05-22 19:49:35 +08:00

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);
}
});
}
}