文章列表
Swing技巧8:完美的LookAndFeel解决方案
在
Swing技巧4:设置系统窗口,边框,标题,最小化,还原,最大化按钮
和
Swing技巧5:运行中重设LookAndFeel
中,我使用
if(currentLookAndFeel.getSupportsWindowDecorations()){
frame.setUndecorated(true);
frame.getRootPane().setWindowDecorationStyle(JRootPane.FRAME);
}
和
public static void setLookAndFeel(Component t ...
1:对Console的支持
对于一些需要Dos窗口或者是Linux的管理台的程序来说,这是非常不错的消息.
演示代码:
import java.io.*;
public class ConsoleTest {
public static void main(String[] args) {
Console console = System.console();//获得Console实例
Object[] a ...
概述
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 expo ...
线程是被个别创建的,但可以将它们归类到线程组中,以便于调试和监视。只能在创建线程的同时将它与一个线程组相关联。在使用大量线程的程序中,使用线程组组织线程可能很有帮助。可以将它们看作是计算机上的目录和文 ...
public static BufferedImage flipHorizontalJ2D(BufferedImage bufferedImage) ...{
int width = bufferedImage.getWidth();
int height = bufferedImage.getHeight();
BufferedImage dstImage = new BufferedImage(width, height, bufferedImage.getType());
AffineTransform ...
- 2007-12-06 18:30
- 浏览 3146
- 评论(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 以及 A ...
- 2007-12-04 17:53
- 浏览 2980
- 评论(0)
如果是 jar 包,在 Plugin 中配置
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<addMavenDescriptor>false</addMav ...
- 2007-12-04 17:47
- 浏览 6768
- 评论(0)