good encapsulation

来源:互联网 发布:南方科技大学知乎 编辑:程序博客网 时间:2024/05/22 14:13

This code is generated by NetBeans. Although it is very simple, it is a good way to understand encapsulation.

        jButtonAdd.setText("Add");        jButtonAdd.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                jButtonAddActionPerformed(evt);            }        });private void jButtonAddActionPerformed(java.awt.event.ActionEvent evt) {        // TODO add your handling code here:    }


原创粉丝点击