![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JavaSE基础
文章平均质量分 66
new苏
自己记得 一些 知识点 别人未必看的懂
展开
-
set get 方法
由于有封装的存在 所以引出 set get方法 来设置和取出;class User01{ //私有String ,int ; private String name; private int age; public String getName() //set get 方法核心; { // 需要有返回值的get来提取String,和in原创 2017-12-12 00:15:42 · 964 阅读 · 0 评论 -
javaSE Swing 按钮文本框触发事件
内部类(一个按钮只有一个作用 用内部类 完美!) 按钮 button 触发事件核心代码button.addActionListener(new ActionListener(){}) 如果想用打开别的类实例化那个类 并且 setVisible(true) JLabel lblNewLabel = new JLabel("New label"); lblNewLabe原创 2017-12-25 19:52:09 · 3408 阅读 · 0 评论