Java基础
MiserFaith
预则立,不预则废。
展开
-
通过get方式解析非西欧字符。
1 <% 2 //获取请求里包含的查询字符串 3 String rawQueryStr = request.getQueryString(); 4 out.println("原始查询字符串为:" + rawQueryStr + ""); 5 //使用URLDecoder解码字符串 6 String queryStr = java.net.URLDecoder.decode(原创 2013-07-12 11:26:20 · 823 阅读 · 0 评论 -
java 带滚动条的多行文本输入
1 package test; 2 3 import java.awt.GridLayout; 4 import java.awt.LayoutManager; 5 //import java.util.EmptyStackException; 6 7 import javax.swing.JFrame; 8 import javax.swing.JLabel; 9 import javax.原创 2013-07-12 11:26:00 · 2219 阅读 · 0 评论 -
java 使用ActionListener监控
1 package test; 2 3 import java.awt.Font; 4 import java.awt.GridLayout; 5 import java.awt.LayoutManager; 6 import java.awt.event.ActionEvent; 7 import java.awt.event.ActionListener; 8 import java.awt原创 2013-07-12 11:26:02 · 5244 阅读 · 0 评论 -
java 键盘监听
1 package LoginDemo; 2 3 import java.awt.event.KeyEvent; 4 import java.awt.event.KeyListener; 5 import java.awt.event.WindowEvent; 6 import java.awt.event.WindowAdapter; 7 import javax.sw原创 2013-07-12 11:26:04 · 1084 阅读 · 0 评论 -
java 显示单选按钮
1 package test; 2 3 import java.awt.Container; 4 import java.awt.GridLayout; 5 import java.awt.event.WindowAdapter; 6 import java.awt.event.WindowEvent; 7 8 import javax.swing.BorderFa原创 2013-07-12 11:26:06 · 1293 阅读 · 0 评论 -
java 下拉列表框
1 package test; 2 3 import java.awt.Container; 4 import java.awt.GridLayout; 5 import java.awt.event.WindowAdapter; 6 import java.awt.event.WindowEvent; 7 import java.util.Vector; 8原创 2013-07-12 11:26:08 · 2780 阅读 · 0 评论 -
java 构建一个简单的菜单
1 package test; 2 3 import java.awt.Container; 4 import java.awt.GridLayout; 5 import java.awt.event.WindowAdapter; 6 import java.awt.event.WindowEvent; 7 import java.io.File; 8 import原创 2013-07-12 11:26:11 · 1256 阅读 · 0 评论 -
java 菜单
1 package test; 2 3 import java.awt.Container; 4 import java.awt.GridLayout; 5 import java.awt.event.WindowAdapter; 6 import java.awt.event.WindowEvent; 7 import java.io.File; 8 import原创 2013-07-12 11:26:13 · 678 阅读 · 0 评论 -
JDBC查询数据
1 package JDBCDEMOS; 2 3 //import java.net.ConnectException; 4 import java.sql.DriverManager; 5 import java.sql.ResultSet; 6 import java.sql.SQLException; 7 import java.sql.Connection;原创 2013-07-12 11:26:15 · 903 阅读 · 0 评论 -
java 数据库操作使用批处理
1 package JDBCDEMOS; 2 3 //import java.net.ConnectException; 4 import java.io.File; 5 import java.io.FileInputStream; 6 import java.io.InputStream; 7 import java.sql.DriverManager; 8 im原创 2013-07-12 11:26:17 · 787 阅读 · 0 评论 -
java 设置密文显示框
1 package test; 2 3 import java.awt.Container; 4 import java.awt.Font; 5 import java.awt.GridLayout; 6 import java.io.File; 7 import java.util.EmptyStackException; 8 import java.util.Iterator; 9 impo原创 2013-07-12 11:25:57 · 1458 阅读 · 0 评论