- 博客(14)
- 收藏
- 关注
javascript Array类 学习
[code="java"]var newObject=new Array("red","green","blue");document.write(newObject); //output red,green,blue//Array拥有栈结构的特征newObject.pop();document.write(""+newObject); //output red,gree...
2010-03-31 11:55:59 99
标题打字效果(摘录)
var message="标题栏打字效果"var message=message+""i="0"var temp=""var speed="150"function titler(){if(!document.all && !document.getElementById)returndocument.title=temp+message.charAt(i)
2010-03-25 22:14:03 121
保存html源文件到txt
[code="java"]import java.io.BufferedReader;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;import java.io.InputStreamReader;import java.net....
2009-12-14 22:31:51 259
Image对象与 BufferedImage
由一个Imge转化成BufferedImage,源码如下:[code="java"]//covert Image object to BufferedImage object//pic (Image type) private BufferedImage convertImageToBuffer(){ BufferedImage bufferedImage = new Buffe...
2009-12-07 19:14:27 376
JFileChooser使用
[code="java"]public class ShowImage extends JPanel implements ActionListener { private JButton open ; private String filePath; private BufferedImage image; private static ShowImage show; ...
2009-12-06 23:22:22 95
css学习笔记2---张孝祥视频
Filter滤镜参数:Alpha(Opacity-? ,FinishOpacity=? ,Style=?,StartX=?,StartY=?(渐变透明效果的开始坐标),FinishX,FinishY)BlendTrans(Duration=?)Blur(Add=?,Direction(值45的整数倍,0表示垂直向上),Strength)Chroma(Color=(要过滤...
2009-11-19 21:12:00 87
原创 css学习笔记--张孝祥视频
设置css的几种方式1.内联样式表(INLINE STYLES)2.嵌入样式表(Embeded style sheets)3.外部样式表(LInked style sheets)编写一个test.css文件P{FONT-SIZE:20pt;COLOR:blue;FONT-FAMILY;宋体;LIST-STYLE-TYPE:circle;TEX...
2009-11-18 10:23:42 121
JLabel加载图标
[code="java"]import java.awt.*;import java.util.*;import javax.swing.*;public class GenerateBmp extends JFrame { public GenerateBmp(){ init(); } private void init(){ JP...
2009-11-18 10:06:47 214
java二叉树
[code="java"]public class Node { int id; // 索引值 int data; Node leftNode; Node rightNode; Node(){ } }[/code][code="java"]package tree;public class BiTree {...
2009-11-02 17:45:26 89
归并排序
[code="java"]package sort; public class MergeSortDemo { private int[] arr1={1,2,3,4}; private int[] arr2={0,6,7,8}; private int[] arr3=new int[8]; public MergeSortDemo(){ } ...
2009-10-27 18:47:17 79
java 单链表
[code="java"]public class NodeDemo { int data; public NodeDemo next; NodeDemo(){ } public NodeDemo(int data){ this.data=data; next=null; }}public class LinkList...
2009-10-26 10:50:04 146
java选择 冒泡 插入排序
[code="java"]public class SortDemo{ private int[] sortArray; public SortDemo(){ sortArray=new int[8]; } public void swap(int i,int j){ int t=sortArray[i]; sortArray[i]=...
2009-10-26 09:52:03 75
读取文件和分页显示
读取和在JTextArea显示文件:[code="java"]// read file public File readFileTxt(){ String str=String.valueOf(DevideText.singleObject().text.getText()); try{ if(str==null) throw new Exception(); ...
2009-10-16 19:10:34 285
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人