javax.swing 里的一些api都有这个方法

解决方案 »

  1.   

    jtree,jdbtable......
    深入理解可以看看有关MVC的东东。
      

  2.   

    MVC Architecture The Model-View-Controller (MVC) architecture is used consistently throughout the Swing component set. The View and Controller parts of the architecture are combined in the component. Each component has an associated Model class and an interface it uses. You can provide your own data-model for a component by subclassing the Model class or by implementing the appropriate interface. For example, you could subclass DefaultListModel or implement the ListModel interface, and then use the JList setModel method to attach your data-model to the component
      

  3.   

    你用过JBuilder没有,你找个软件装上在帮助了查哪个类有这个方法。你试试就知道了,别人是讲不清的。好吧!
      

  4.   

    Many classes provide this method as well as the following one:public class A{
       public void getModel(){}
    }