代码:import java.awt.Graphics;import
javax.swing.ImageIcon;import javax.swing.JPanel;public class Picture extends
JPanel { private static final long ...
分类:
其他好文 时间:
2014-04-28 09:55:53
阅读次数:
903
JAVA 枚举定义常用方法: 1、static Enum valueOf(Class
enum,String name) 返回指定name的枚举类型 2、Static Enum values[] 返回枚举常量集合package
com.rhythmk.filedemo;import java...
分类:
编程语言 时间:
2014-04-28 07:01:10
阅读次数:
575
xvfb启动PyQt4程序报如下错误:Unable to load library icui18n
"Cannot load library icui18n: (libicui18n.so.48: cannot open shared object file:
No such file or dir...
分类:
其他好文 时间:
2014-04-28 05:54:03
阅读次数:
675
1.普通工厂模式package CommonFactory;public class Test {
public static void main(String[] args) { VehicleFactory factory = new
CarFactory(); ...
分类:
其他好文 时间:
2014-04-28 04:46:43
阅读次数:
427
Oracle在9i或者早期的版本,对于性能优化方面,主要采用命中率模型,后面的版本,也保留着命中率模型,比如在awr报告中,Instance
Efficiency Percentages (Target 100%)就有关于buffer cache,library
cache等相关的命中率。命中率在性...
分类:
数据库 时间:
2014-04-28 03:20:03
阅读次数:
807
文字格式设置:
字体颜色设置:
Program.cs:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace ColorDialog
{
static class Program
{...
分类:
其他好文 时间:
2014-04-27 20:38:47
阅读次数:
576
单例模式建议保证某个对象仅仅只有一个实例,当只有一个对象来协调整个系统的操作时,在计算机系统中,线程池、缓存、日志对象、对话框、打印机、显卡的驱动程序对象常被设计成单例,总之,选择单例模式就是为了避免不一致状态,避免政出多头。
下面是单例模式的类图:包括的private和static修饰的实例instance、一个private的构造函数、一个static的getInstance函数
...
分类:
编程语言 时间:
2014-04-27 20:10:52
阅读次数:
645