自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 资源 (19)
  • 收藏
  • 关注

原创 Java如何获取字符串的宽度和高度

[size=medium][color=blue]import java.awt.FontMetrics;public int[] getStringWidth(String str){ JLabel label = new JLabel(); FontMetrics metrics; int textH = 0; int textW = 0; label.set...

2010-11-16 16:08:23 583

java如何判断字符串中有中文

[color=darkred]在Java中有个Character.UnicodeBlock静态类,Character.UnicodeBlock.of(char c)返回该字符的文字常量。例如:class Test{//判断该字符是否为中文private boolean isChinese(char c) { Character.UnicodeBlock ub = ...

2010-11-16 15:28:54 145

原创 透明JDialog

[color=red]import java.awt.BorderLayout;import java.awt.Dialog;import java.awt.Dimension;import java.awt.FlowLayout;import java.awt.Graphics;import java.awt.event.ActionEvent;import java.a...

2010-11-05 11:26:03 269

原创 JTextPane文字样式定制

import java.awt.*;import javax.swing.*;import javax.swing.text.*;public class JtextPaneldemo extends JFrame { private static final long serialVersionUID = 1L; // main function ...

2010-11-05 11:11:46 162

原创 swing 如何实现图片和文字一起显示(如qq)

import java.awt.Container;import java.awt.Rectangle;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.util.Vector;import javax.swing.Icon;import javax.swin...

2010-11-05 11:05:23 911

原创 swing (输入框)背景图片JTextPane

import javax.swing.JFrame;import javax.swing.JTextPane;import java.awt.event.WindowAdapter;import java.awt.event.WindowEvent;import javax.swing.JScrollPane;import javax.swing.ImageIcon;imp...

2010-11-05 10:57:30 245

原创 JAVA GUI 在文本框(JTextField)中监控文本框内的变化

作为一个跨平台的编程解决方案,Java显然不能像Delphi那样,在用户界面设计方面提供强大、直观和快捷的设计支持。比如对于文本框的控制,当我们要在程序中感知用户是否修改了文本框中的内容时,Delphi提供了一个直接的事件调用OnValueChanged(),可以在文本框内容得到实际的改动时被激活。而要在Java中实现这一功能就似乎麻烦了一点,直接的调用只有keyPressed()和keyType...

2010-10-29 14:20:53 997

原创 java Pattern格式化日期

1、yyyy-MM-dd格式的日期Pattern p = Pattern .compile( "^((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|...

2010-10-29 14:06:42 1553

Object.Refinery.The.JFreeChart.Class.Library.Developer.Guide.v1.0.9.Jan.2008

详细介绍了JFreechart的每个Demo和JFreechart的API方法的使用

2010-06-07

图形上下文导论(Introduction to SWT Graphics)

org.eclipse.swt.graphics包(package),包含了管理图形资源的类。只要实现了org.eclipse.swt.graphics.Drawable接口,就可在上面绘画,包括 org.eclipse.swt.widgets.Control 和 org.eclipse.swt.graphics.Image 。 org.eclipse.swt.graphics.GC封装了全部绘画API,包括如何绘制线条、图形、如何绘制文本、图像以及填充图形。 本篇将展示如何使用GC在图像上绘画, 控件的绘画事件(paintEvent)回调。画布(Canvas)控件,因为不同的绘画操作,拥有很多构造风格常量允许你指定何时以及如何产生绘画,本篇也将展示这些东西。

2013-03-21

Eclipse i18n国际化插件

Eclipse i18n国际化插件........................................

2009-08-19

SQLiteExpertSetup

SQLite Expert is a powerful visual tool that enables you to easily administer your SQLite3 databases and gain significantly better visibility into how your databases are operating. SQLite Expert integrates database management and maintenance into a single, seamless environment, with a clear and intuitive graphical user interface. Homepage: www.sqliteexpert.com Features include: 1. Modify table structure visually without losing data already existing in the database. SQLite Expert will automatically create a new table with the new structure and copy the data from the old table. All the operations are wrapped in a transaction which is rolled back if any error occurs during the process. 2. Build SQL scripts visually using the integrated Query Builder. 3. Create SQLite3 databases, view and change database parameters, check database integrity and vacuum (compact) database. 4. The Data Transfer Wizard allows import/export from/to SQL script, another SQLite database or an ADO data source. 5. Display and edit data in the grid, including BLOB and image fields. Currently supports BMP, JPG and PNG image formats. 6. BLOB fields can be edited with the integrated hex editor. 7. Execute SQL queries. Supports multiple SQL statements in the same query. 8. In-grid editing of live queries. 9. Save/Load SQL scripts to/from file. 10. Transaction support. SQLite supports one level of transactions. 11. Data mapping. SQLite Expert supports custom data types, and 40 predefined data types. 12. Extend and enhance SQLite Expert using Lua or Pascal scripts. System Requirements Operating System: Windows 2000/XP/2003/Vista SQLite - sqlite.dll version 3.x. (included)

2010-03-08

swt api 3.7

swt api org.eclipse.swt org.eclipse.swt.accessibility org.eclipse.swt.awt org.eclipse.swt.browser org.eclipse.swt.custom org.eclipse.swt.dnd org.eclipse.swt.events org.eclipse.swt.graphics org.eclipse.swt.internal org.eclipse.swt.internal.gdip org.eclipse.swt.internal.image org.eclipse.swt.internal.mozilla org.eclipse.swt.internal.mozilla.init org.eclipse.swt.internal.ole.win32 org.eclipse.swt.internal.opengl.win32 org.eclipse.swt.internal.theme org.eclipse.swt.internal.win32 org.eclipse.swt.layout org.eclipse.swt.ole.win32 org.eclipse.swt.opengl org.eclipse.swt.printing org.eclipse.swt.program org.eclipse.swt.widgets

2013-03-21

C# Socket 发送接收文件,消息

C# Socket 发送接收文件,消息 互发消息,服务器下发文件

2013-10-22

Java sql数据库api

Java sql数据库api....................................

2009-08-19

C#操作Excel(导入图片,转出CSV文件)

详细描述了如何把图片导入Excel,如何把Excel转成CSV文件

2010-06-07

javascript进销存模板

javascript进销存模板 首页为:mainframe.htm 浏览本工程,请直接双击此页面。

2009-07-21

Hr人力资源管理系统

加入了dojo,struts,spring,hibernate的人力资源管理系统

2009-07-21

swt layout

SWT中常用的布局管理器有如下一些。 ●FillLayout:子组件将以相同的大小填充到父组件中。 ● RowLayout:子组件将在父组件上一行或几行显示(设置相应的属性值,子组件会自动换行)。 ●GridLayout:网格式布局,子组件可以指定占用父组件中几个格,以及组件填充哪几个网格。 ● FormLayout:可以通过FormAttachment以父组件或子组件的边作为相对位置,进行精确布局。

2013-03-21

C#操作Excel的Excel.dll文件

C#操作Excel的Excel.dll文件.............

2010-06-07

PowerDesigner使用教程

PowerDesigner使用教程..............................

2009-08-19

SWING+HACKS

Swing Hacks helps Java developers move beyond the basics of Swing, the graphical user interface (GUI) standard since Java 2. If you're a Java developer looking to build enterprise applications with a first-class look and feel, Swing is definitely one skill you need to master. This latest title from O'Reilly is a reference to the cool stuff in Swing. It's about the interesting things you learn over the years--creative, original, even weird hacks--the things that make you say, "I didn't know you could even do that with Swing!" Swing Hacks will show you how to extend Swing's rich component set in advanced and sometimes non-obvious ways. The book touches upon the entire Swing gamut-tables, trees, sliders, spinners, progress bars, internal frames, and text components. Detail is also provided on JTable/JTree, threaded component models, and translucent windows. You'll learn how to filter lists, power-up trees and tables, and add drag-and-drop support. Swing Hacks will show you how to do fun things that will directly enhance your own applications. Some are visual enhancements to make your software look better. Some are functional improvements to make your software do something it couldn't do before. Some are even just plain silly, in print only to prove it could be done. The book will also give you give you a small glimpse of the applications coming in the future. New technology is streaming into the Java community at a blistering rate, and it gives application developers a whole new set of blocks to play with. With its profusion of tips and tricks, Swing Hacks isn't just for the developer who wants to build a better user interface. It's also ideally suited for client-side Java developers who want to deliver polished applications, enthusiasts who want to push Java client application boundaries, and coders who want to bring powerful techniques to their own applications. Whatever your programming needs, Swing Hacks is packed with programming lessons that increase your competency with interface-building tools.

2009-11-28

struts2.0中文帮助手册

struts2.0中文帮助手册可以更好的学习struts2

2009-07-28

JCreator.Pro.v4.50.010

JCreator.Pro.v4.50.010..............................................

2009-08-19

SQLiteManager

和phpmyadmin一样的形式管理sqlite数据库

2010-03-08

上传下载音乐管理系统

使用struts开放的上传下载音乐管理系统,可以更好的管理音乐文件

2009-07-21

Java反编译器Decomp3.5.5.77

Java反编译器Decomp3.5.5.77,可以很好的反编译Jdk1.5,Jdk1.6的class文件

2009-07-22

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除