Swing技巧8:完美的LookAndFeel解决方案 在 Swing技巧4:设置系统窗口,边框,标题,最小化,还原,最大化按钮 和 Swing技巧5:运行中重设LookAndFeel 中,我使用 if(currentLookAndFeel.getSupportsWindowDecorations()){ frame.setUndecorated(true); frame.getRootPane().setWindowDecorationStyle(JRootPane.FRAME); } 和 public static void setLookAndFeel(Component ...
1:对Console的支持 对于一些需要Dos窗口或者是Linux的管理台的程序来说,这是非常不错的消息. 演示代码: import java.io.*; public class ConsoleTest { public static void main(String[] args) { Console console = System.console();//获得Console实例 Object[] a1={}; Object[] a2={}; if(console!=null){//判断console是否可用 String user = new String(cons ...
概述   Java 语言从诞生的那天起,就非常注重网络编程方面的应用。随着互联网应用的飞速发展,Java 的基础类库也不断地对网络相关的 API 进行加强和扩展。在 Java SE 6 当中,围绕着 HTTP 协议出现了很多实用的新特性:NTLM 认证提供了一种 Window 平台下较为安全的认证机制;JDK 当中提供了一个轻量级的 HTTP 服务器;提供了较为完善的 HTTP Cookie 管理功能;更为实用的 NetworkInterface;DNS 域名的国际化支持等等。   NTLM 认证   不可避免,网络中有很多资源是被安全域保护起来的。访问这些资源需要对用户的身份进行认证。 ...
Apache CXF Developing a Service using JAX-WS two approaches: I.WSDL First Development Generate starting point code. Implement the service's operations. Publish the implemented service. II.Java First Development Create a Service Endpoint Interface (SEI) that defines the methods you wish to exp ...
线程是被个别创建的,但可以将它们归类到线程组中,以便于调试和监视。只能在创建线程的同时将它与一个线程组相关联。在使用大量线程的程序中,使用线程组组织线程可能很有帮助。可以将它们看作是计算机上的目录和文件结构。 线程间发信 当线程在继续执行前需要等待一个条件时,仅有 synchronized 关键字是不够的。虽然 synchronized 关键字阻止并发更新一个对象,但它没有实现线程间发信。Object 类为此提供了三个函数:wait()、notify() 和 notifyAll()。以全球气候预测程序为例。这些程序通过将地球分为许多单元,在每个循环中,每个单元的计算都是隔离进行的,直到 ...
public static BufferedImage flipHorizontalJ2D(BufferedImage bufferedImage) ...{ int width = bufferedImage.getWidth(); int height = bufferedImage.getHeight(); BufferedImage dstImage = new BufferedImage(width, height, bufferedImage.getType()); AffineTransform ...
  • 18:30
  • 浏览 (305)
  • 评论 (0)
一:简介   本文介绍了Java与.NET开发的Web Services相互调用的技术。本文包括两个部分,第一部分介绍了如何用.NET做客户端调用Java写的Web Services,第二部分介绍了如何用Java做客户端调用.NET开发的Web Services。   二:项目需要的工具   Windows2000 Server(IIS)   Jbuilder9.0( 含有Tomcat , axis)   JDK1.4+Java Web Services Develop   VS.Net 2003   备注:如果没有JBuilder的话就需要自己下载安装Tomcat4.1 以及 ...
  • 17:53
  • 浏览 (2011)
  • 评论 (0)
如果是 jar 包,在 Plugin 中配置 <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <configuration> <archive> <addMavenDescriptor>false</addMavenDescriptor> </ar ...
  • 17:47
  • 浏览 (2060)
  • 评论 (0)
liyong0527
搜索本博客
博客分类
最近加入圈子
最新评论