摘要: 阅读全文
posted @ 2014-03-27 09:02 lxricecream 阅读(160) 评论(0) 推荐(0)
摘要: 1.下载jetty ,下载地址:http://download.eclipse.org/jetty/选择你需要的版本,点 download 下载,不要点错了,download点击出现下面:选择你要下载的文件格式,我下载的是zip文件。2 . 部署应用程序 阅读全文
posted @ 2014-03-25 21:36 lxricecream 阅读(985) 评论(0) 推荐(0)
摘要: jigloo是eclipse的一个插件,用它可以使我们快速的完成复杂的可视化界面程序的创建。它的安装步骤:1.下载jigloo地址http://www.cloudgarden.com/jigloo/index.html2.找到的你的eclipse安装目录,在里边新建文件夹links(如果有就不用建)3.在link文件夹下建Jilgoo.link文件,文件内容为你Jilgoo文件夹地址,例如:path=E:\\应用软件\\jigloo 阅读全文
posted @ 2014-03-22 12:18 lxricecream 阅读(231) 评论(0) 推荐(0)
摘要: JTextArea 是一个显示纯文本的多行区域。它作为一个轻量级组件,提供与 java.awt.TextArea 类的源兼容性。 阅读全文
posted @ 2014-03-15 22:48 lxricecream 阅读(163) 评论(0) 推荐(0)
摘要: package com.stella;import java.io.Closeable;import java.io.File;import java.io.FileFilter;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;import java.io.SequenceInputStream;import java.util.ArrayList;import java.util.Coll 阅读全文
posted @ 2014-03-15 18:51 lxricecream 阅读(179) 评论(0) 推荐(0)
摘要: import java.io.File;import java.io.FileReader;import java.io.FileWriter;import java.io.IOException;import java.util.Properties;public class PropertiesTest { public static void main(String[] args) throws IOException { File file = new File("my.ini"); //犯傻的时候,我把这句写到这,还说每次读到的文件都是空的,傻了 //这样的话,每 阅读全文
posted @ 2014-03-14 20:03 lxricecream 阅读(373) 评论(0) 推荐(0)
摘要: 按alt + shift + a,按两次就好了 阅读全文
posted @ 2014-03-13 22:25 lxricecream 阅读(106) 评论(0) 推荐(0)
摘要: import java.io.File;public class SearchFileTestDriver { public static void main(String[] args) { File file = new File("E:\\atm"); searchFiles(file, 0); } public static void searchFiles(File file, int level){ if(file != null && file.exists() && file.isDirectory()){ System.ou 阅读全文
posted @ 2014-03-13 20:11 lxricecream 阅读(261) 评论(0) 推荐(0)
摘要: import java.io.File;import java.io.FileInputStream;import java.io.FileOutputStream;import java.io.IOException;import java.io.SequenceInputStream;import java.util.Vector;/** * 序列流合并文件 * @author Administrator * */public class SequenceInputStreamTest { public static void main(String[] args) throws IOEx 阅读全文
posted @ 2014-03-12 12:25 lxricecream 阅读(222) 评论(0) 推荐(0)
摘要: 两个线程,一个线程持有另一个线程运行时的锁,就会死锁public class SynchronizedLock{ public static void main(String[] args) throws InterruptedException { SynchronizedLockDemo sld = new SynchronizedLockDemo(); Thread thread0 = new Thread(sld); Thread thread1 = new Thread(sld); thread0.start(); Thread.sleep(1); sld.flag ... 阅读全文
posted @ 2014-03-12 09:33 lxricecream 阅读(142) 评论(0) 推荐(0)