
java
sunhuiy
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
java rmi练习
接口: import java.rmi.Remote; import java.rmi.RemoteException; public interface IHello extends Remote { public String helloWorld() throws RemoteException; } 实现类: import java.io.Serializa...原创 2009-09-22 21:45:32 · 201 阅读 · 0 评论 -
swing lookandfeel
UIManager.setLookAndFeel(new com.sun.java.swing.plaf.windows.WindowsLookAndFeel()); UIManager.setLookAndFeel(new com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel()); UIManager.setL...原创 2009-10-26 19:11:38 · 145 阅读 · 0 评论 -
swing jtable
Thread thread = new Thread(){ public void run() { Runnable runnable = new Runnable(){ public void run() { ...原创 2009-10-26 19:25:13 · 126 阅读 · 0 评论 -
Web Service 示例
今天看了一些web service的东西, java实现web service的功能比较简单,一个小例子 MyWebService类 import javax.jws.*; import javax.jws.soap.*; @WebService(targetNamespace="http://localhost:7070/mws") @SOAPBinding(style=SO...2010-04-08 12:49:02 · 163 阅读 · 0 评论 -
java console
import java.io.Console; public class Test01 { public static void main(String[] args) { Console console = System.console(); if (console != null) { String user = new String(console.read...2010-04-26 15:29:00 · 169 阅读 · 0 评论 -
JDom使用示例
读取XML: public void readXML() { try { File file = new File("./test.xml"); SAXBuilder builder = new SAXBuilder(); Document doc = builder.build(file); Element foo = doc.getRootElement...2010-04-30 09:07:59 · 182 阅读 · 0 评论