- 博客(12)
- 收藏
- 关注
原创 Flex中datagrid的分页
PagingBar.mxml <?xml version="1.0" encoding="utf-8"?><mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="white"> <mx:Script> <![CDATA[
2011-01-10 22:16:19
151
原创 DAO数据模型
Java DAO 示例: import java.sql.* ; public class DataBaseConnection{ private String DBDRIVER = "com.mysql.jdbc.Driver" ; private String DBURL = "jdbc:mysql://localhost:3306/test" ; private String D...
2010-12-27 22:17:45
248
原创 删除Java代码中的注释以及将字符串替换为空格
import java.io.*;import java.util.HashMap;import java.util.regex.*; public class DelRem{ public static void main(String args[]) { DelRem delRem = new DelRem(); String dirName = "E:/workspace/SwingD...
2010-12-21 22:35:49
329
原创 Drag操作
import java.awt.*; import java.awt.datatransfer.*; import java.awt.event.*; import java.awt.dnd.*; import java.io.*; import java.util.*; import javax.swing.*; public class DropTargetTest { ...
2010-10-27 23:35:42
234
原创 Java学习资料
Java Technology Reference http://java.sun.com/reference/index.jsp#documentation Java Language Specification, Third Edition - TOC http://java.sun.com/docs/books/jls/third_edition/html/j3TOC.html ...
2010-07-21 21:37:26
92
原创 Swing初学
Java Swing(图形用户界面) 1、创建Swing窗体后,不能把组件直接添加到创建的窗体中,Swing组件窗体含有一个称为内容面板的容器,组件只能添加Swing窗体对应的内容面板中,创建Swing窗体对应的内容面板,可以使用Container类中的getContentPane()方法获得内容面板对象.如: Container content= getContentPane(); JDi...
2010-07-20 18:38:15
366
原创 Makefile文件编写
一个简单的makefile示例及其注释 相信在unix下编程的没有不知道makefile的,刚开始学习unix平台 下的东西,了解了下makefile的制作,觉得有点东西可以记录下。 下面是一个极其简单的例子: 现在我要编译一个Hello world,需要如下三个文件: 1. print.h #include void printhello(); ...
2010-05-19 11:35:39
143
原创 writen.c
/* include writen */ #include "unp.h" ssize_t /* Write "n" bytes to a descriptor. */ writen(int fd, const void *vptr, size_t n) { size_t nleft; ssize_t nwritten; const char *ptr; ...
2010-05-18 22:03:57
159
原创 readline.c
/* include readline */ #include "unp.h" static ssize_t my_read(int fd, char *ptr) { static int read_cnt = 0; static char *read_ptr; static char read_buf[MAXLINE]; if (read_cnt
2010-05-18 22:03:25
139
原创 readn.c
/* include readn */ #include "unp.h" ssize_t /* Read "n" bytes from a descriptor. */ readn(int fd, void *vptr, size_t n) { size_t nleft; ssize_t nread; char *ptr; ptr = vptr; nl...
2010-05-18 22:02:38
141
原创 wrapsock.c
/* * Socket wrapper functions. * These could all go into separate files, so only the ones needed cause * the corresponding function to be added to the executable. If sockets * are a library (...
2010-05-18 22:01:27
99
原创 unp.h
/* include unph */ /* Our own header. Tabs are set for 4 spaces, not 8 */ #ifndef __unp_h #define __unp_h #include "../config.h" /* configuration options for current OS */ /* "../conf...
2010-05-18 21:59:05
215
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人