java里repaint()是重绘component的方法;
component中己有的图形发生变化后不会立刻显示,须使用repaint方法。
java里repaint()是重绘component的方法;component中己有的图形发生变化后不会立刻显示,须使用repaint方法。
component简而言之,组件就是对象。C++ Builder中叫组件,Delphi中叫部件,而在Visual BASIC中叫控件。
组件是对数据和方法的简单封装。C++ Builder中,一个组件就是一个从TComponent派生出来的特定对象。组件可以有自己的属性和方法。