- 博客(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 118
原创 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 191
原创 删除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 288
原创 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 197
原创 Java学习资料
Java Technology Referencehttp://java.sun.com/reference/index.jsp#documentationJava Language Specification, Third Edition - TOChttp://java.sun.com/docs/books/jls/third_edition/html/j3TOC.html...
2010-07-21 21:37:26 68
原创 Swing初学
Java Swing(图形用户界面)1、创建Swing窗体后,不能把组件直接添加到创建的窗体中,Swing组件窗体含有一个称为内容面板的容器,组件只能添加Swing窗体对应的内容面板中,创建Swing窗体对应的内容面板,可以使用Container类中的getContentPane()方法获得内容面板对象.如:Container content= getContentPane();JDi...
2010-07-20 18:38:15 309
原创 Makefile文件编写
一个简单的makefile示例及其注释 相信在unix下编程的没有不知道makefile的,刚开始学习unix平台下的东西,了解了下makefile的制作,觉得有点东西可以记录下。 下面是一个极其简单的例子:现在我要编译一个Hello world,需要如下三个文件: 1. print.h #include void printhello();...
2010-05-19 11:35:39 108
原创 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 126
原创 readline.c
/* include readline */#include "unp.h"static ssize_tmy_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 102
原创 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 98
原创 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 73
原创 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 171
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人