`
GeminiYoung
  • 浏览: 21372 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论
文章列表
虽然说现在WindowBuilder插件免费了,但是安装往往不顺利,因为是在线安装的,装到48%就不能前进了,特别烦人,而我上次安装成功用的是Eclipse 3.6.1,现在的最新版是3.6.2,我是一个喜欢用最新版的Eclipse的人,但是却无法安装我喜欢的WindowBuilder插件,咋办呢? 前几天尝试用Eclipse安装WindowBuilder插件,试了几次都不行,于是把注意力放在了原来的Eclipse 3.6.1上,或许可以把WindowBuilder插件从Eclipse 3.6.1中提取出来。 我们都知道,Eclipse的插件是放在“features”与“pl
     最近做毕业设计,是基于量子进化算法的对弈游戏,我感觉在毕业设计上加个秒表比较好,于是写了一个。 图1 //StopWatch.java import java.awt.Dimension; import java.awt.Toolkit; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Text; import com.swtdesigner.SWTResourceManager; import ...
以前的课程设计 1、双列显示: #include <windows.h> #include <winnt.h> #include<iostream> #include<iomanip> using namespace std; int week(int,int,int); //根据年月日判断星期几 int leap_year(int); //判断闰年 void display_year(int ); //显示某年日历 void demand_day(int,in ...
这个是以前的课程设计: #include<iostream> #include<ctime> using namespace std; #define TRUE 1 #define FALSE 0 #define OK 1 #define ERROR 0 #define INFEASIBLE -1 #define OVERFLOW -2 #define M 8 #define N 8 #define MaxSize M*N typedef int Status; int mg[M+2][N+2]; struct { int i,j, ...
import java.io.IOException; import java.net.URI; import java.net.URISyntaxException; public class Main { public static void main(String[] args) throws IOException, URISyntaxException { // TODO Auto-generated method stub URI uri = new java.net.URI("http://geminiyoung.iteye.com/" ...
     有时候用SWT写桌面程序,用到文本框只允许输入数字(例如,该文本框输入的是身份证号),那么我们最希望的就是它只能输入数字,这样不用点击“确定”后再判断,如果不合格的话再提示重新输入。如果使用文本框的事件监听,那么就方便多了。     参考如下代码段: text.addVerifyListener(new VerifyListener(){ public void verifyText(VerifyEvent e) { boolean b = ("0123456789".indexOf(e.text)>=0); ...
Global site tag (gtag.js) - Google Analytics