会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
喵小喵~
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
62
63
64
65
66
67
68
下一页
2015年11月28日
Calender
摘要: public static void main(String[] args) { // TODO 自动生成的方法存根 Calendar c = new GregorianCalendar(); c.set(2001,1,10,12,13,34); ...
阅读全文
posted @ 2015-11-28 11:27 喵小喵~
阅读(202)
评论(0)
推荐(0)
2015年11月27日
DateForamt和SimpleDateFormat
摘要: 1.因为DateFormat是抽象类,所以只能用子类来初始化DateFormat df = new SimpleDateFormat("yyyy--MM--dd HH:MM:ss,属于本年的第w周"); Date d = new Date(); Stri...
阅读全文
posted @ 2015-11-27 22:53 喵小喵~
阅读(227)
评论(0)
推荐(0)
2015年11月25日
飞机项目总结
摘要: 一.MyFramepublic class MyFrame extends Frame { /** * 加载窗口 */ public void launchFrame(){ setSize(Constant.GAME_WIDTH, Constant...
阅读全文
posted @ 2015-11-25 13:35 喵小喵~
阅读(400)
评论(0)
推荐(0)
2015年11月24日
双缓冲绘图模式
摘要: reapaint()调用update()再调用paint();所以在update中使用双缓冲private Image offScreenImage = null; public void update(Graphics g) { if(offScreenImage == nul...
阅读全文
posted @ 2015-11-24 20:37 喵小喵~
阅读(617)
评论(0)
推荐(0)
java异常
摘要: public class MyException extends Exception{ public MyException() { super(); } public MyException(String name) { super(name)...
阅读全文
posted @ 2015-11-24 17:48 喵小喵~
阅读(149)
评论(0)
推荐(0)
15-11-24 system同步与异步
摘要: //打开关闭qq#define _CRT_SECURE_N0_WARNINGS#define _CRT_SECURE_NO_WARNINGS#include#include #include void open(){ system("\"F:\\Program Files\\Tencent\\QQ\...
阅读全文
posted @ 2015-11-24 11:10 喵小喵~
阅读(705)
评论(0)
推荐(0)
2015年11月23日
15-11-23:system指令
摘要: CMD命令:开始->运行->键入cmd或command(在命令行里可以看到系统版本、文件系统版本)1. appwiz.cpl:程序和功能 2. calc:启动计算器 3. certmgr.msc:证书管理实用程序 4. charmap:启动字符映射表 5. chkdsk.exe:Chkdsk磁盘检查...
阅读全文
posted @ 2015-11-23 21:30 喵小喵~
阅读(429)
评论(0)
推荐(0)
2015年11月8日
使用Swing组件编写一个支持中文文本编辑程序ChineseTextEdit.java
摘要: import javax.swing.*;import java.awt.*;import java.awt.event.*;import java.io.*;public class ChineseTextEdit extends JFrame implements ActionListener{...
阅读全文
posted @ 2015-11-08 13:06 喵小喵~
阅读(591)
评论(0)
推荐(0)
JTextArea 加入滚动条
摘要: JTextArea texA; JScrollPane scroll; TextEdit(String name){ super(name); init(); } void init(){ this.setBounds...
阅读全文
posted @ 2015-11-08 12:17 喵小喵~
阅读(371)
评论(0)
推荐(0)
键盘事件
摘要: public class Keyboard extends JFrame implements KeyListener{ JLabel I; Keyboard(String name){ super(name); init(); } ...
阅读全文
posted @ 2015-11-08 11:08 喵小喵~
阅读(124)
评论(0)
推荐(0)
上一页
1
···
62
63
64
65
66
67
68
下一页
公告