达内学习心得:Eclipse中常用的操作单词.doc
文本预览下载声明
达内学员:Eclipse中常用的操作单词
获奖学员:于联起
所获奖项:三等奖
Existing Project into Workspace 现有的工程引入工作空间(加载工程)
File 文件
New 新建
Project 工程
Folder 文件夹
Import 引入(加载导入)
Run As 运行
Application 应用程序
copy 复制
paste 粘贴
Delete 删除
properties 属性
Java Build Path 建立java路径
Libraries 库
Add Library 添加库
User Library 用户库
Next 下一步
User Libraries 用户库
New 新建
JDBC-ODBC 桥
需掌握的单词
overload 重载
override 重写(覆盖)
程序编写时常用的单词
package 指定文件夹
class 类
static 静态类型
true 真
false 假
String 字符串对象(也是一种数据类型)
extends 继承
this 当前对象引用
super 父类对象引用
Math.random() 随机数
interface 接口
implements 继承接口
throw 抛出
throws 抛出
try 尝试
catch 捕获
Exception 异常
Separator 分割线
窗体
show 展示
this.setTitle 设置标题
this.setSize(500,400); 窗体大小
this.setLocation(260,150); 窗体初始位置
this.show(); 显示窗体
this.setLocationRelativeTo(null); 居中
this.setDefaultCloseOperation(3); 关闭按扭起作用
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 关闭按扭起作用
JLabel lbl = new JLabel(new ImageIcon(1.gif)); 图片标签
getContentPane 获得窗体的内部窗格
setBackground(Color.BLUE) 设置背景颜色
setResizable() 设置是否能最大化()内 填true或false
setAlwaysOnTop() 窗口在最顶端()内 填true或false
Font 字体
showMessageDialog 弹出对话框
append 追加
valueChanged 改变数值
requestFocus 获得焦点
selectAll 全选
setText 设置文本域内容
getText 获得文本域内容
setEnabled() 设置控件是否可用()内 填true或false
setAccelerator 设置加速器
KeyStroke 敲击键盘
getKeyStroke 获得所敲击的键盘
InputEvent 输入事件
getDocument 获得文件
addUndoableEditListener 添加撤销监听器
SimpleDateFormat 简易日期格式
setLineWrap 设置行距
addEdit 添加编辑
getEdit 获得编辑
setBorder 设置边框
Factory 工厂
createTitledBorder 创建标题边框
setVisible() 设置视窗是否隐藏()内 填true或false
setCursor 设置指针
isPopupTrigger 确定点鼠标击右键
getSelectedValue 获得选中的值
toString 返回字符串
insertIcon 插入图标
getActionCommand 获得动作命令
getKeyCode 获得键盘码
KeyEvent.VK_RIGHT 键盘事件.右箭头
getIcon 获得标签
setIcon 设置标签
getSource 获得所选
charAt() 查找指定下标所对应的字符
indexOf() 查找某一字符串,首次出现的位置(从前向后)
lastIndexOf() 查找某一字符串,首次出现的位置(从后向前)
length() 返回字符串长度
equals() 比较两个字符串
toUpperCase() 转为大写
toLowerCase() 转为小写
split() 分割字符串
replace() 替换
.addRow(Object[]) 添加一条记录
setRowCount(0) 清空表模型
repaint 重绘
ComboBox.getSelectedItem 获得下拉框所选择的内容
ComboBox.addItem(rs.getString(1)) 重新添加下拉框
显示全部