1.String类的endsWith()
方法
转载链接:https://www.runoob.com/java/java-string-endswith.html
2.String类的getBytes()
方法
转载链接:https://www.runoob.com/java/java-string-getbytes.html
3.关于NoClassDefFoundError
和ClassNotFoundException
异常
转载博客:https://www.cnblogs.com/kofxxf/p/3706876.html
4.异常信息Exception e,e的相关方法
e.toString()
: 获得异常种类和错误信息
e.getMessage()
:获得错误信息
e.printStackTrace()
:在控制台打印出异常种类,错误信息和出错位置等
5.Scanner对象hasNextInt()
方法
转载博客:https://blog.csdn.net/iteye_7023/article/details/82674601
https://blog.csdn.net/qq_42609863/article/details/87085939
6.JFrame的getContentPane()
方法
作用是获取内容面板,因为JFrame不能直接添加组件,需要用getContentPane()
方法获取内容面板,再在内容面板上进行添加组件 。
例如:
Container c=this.getContentPane();//初始化一个容器
c.add(jProgressBar1); //在容器上添加控件
7.setBackground
方法
转载博客:https://blog.csdn.net/cqx13763055264/article/details/78306450
8.setBounds
方法
转载自博客:https://www.cnblogs.com/xulf/p/3860317.html
9.setSize
和setLocation
方法
转载自博客:https://blog.csdn.net/u011235543/article/details/51892500
10.关于JMenu中快捷键的设置
转载自博客:http://blog.sina.com.cn/s/blog_be1b00bf0102vg0h.html
11.addSeparator()
方法
转载自博客:https://blog.csdn.net/victortony/article/details/38459563
12.JComboBox.addItem
方法
addItem(Object anObject) //为项列表添加项。
转载自博客:https://blog.csdn.net/sjf0115/article/details/6991579
13.JScrollPane
的使用
转载自博客:https://blog.csdn.net/qq_40270751/article/details/78720699