
SWT
文章平均质量分 63
茶凉了就别再续了
这个作者很懒,什么都没留下…
展开
-
SWT中comboViewer 控件使用
package com.test.swt;import org.eclipse.swt.widgets.Display;public class TestComboViewer { protected Shell shell; /** * Launch the application. * @param args */原创 2013-09-01 21:31:45 · 2917 阅读 · 0 评论 -
MyEclips 8.6安装SWT插件
在myeclipse 8.6.1下安装SWTDesigner_v7.6.01.首先打开你的安装文件2.此时打开Myeclipse8.6.1(我自己命名的文件夹,你的可能不同,但Common应该一样)3.打开dropins文件夹,这时文件夹是空的4.把你下载的SWTDesigner_v7.6.0文件夹里的features文件夹和plugins文件夹复制到此目录下即原创 2014-04-12 09:12:03 · 1092 阅读 · 0 评论 -
SWT中当光标移开文本框时验证
bmiMin.addListener(SWT.FocusIn, new Listener() { public void handleEvent(Event event) { if (checktype == 0) { checkname = "bmiMin"; checktype = 1; } } }); bmiMin.addListen原创 2014-05-09 09:22:32 · 1026 阅读 · 0 评论 -
CheckboxTableViewer控件详解
CheckboxtableView使用 //创建CheckboxTableViewer CheckboxTableViewer checkboxTableViewer = CheckboxTableViewer.newCheckList(shell, SWT.BORDER | SWT.FULL_SELECTION); table = c原创 2014-04-21 13:23:33 · 4802 阅读 · 0 评论 -
SWT 使窗体程序居中显示
SWT中使子窗体居中显示public class FrameCenter { public static void setFrameCenter(Shell shell){ int width = shell.getMonitor().getClientArea().width; int height = shell.getMonitor().getClientArea().heig原创 2014-04-21 12:47:47 · 1229 阅读 · 0 评论 -
Tableviewer中为表格添加删除、修改link
SWT中Tableviewer表格使用添加在每一行后面添加超链接按钮原创 2014-05-06 19:49:51 · 2804 阅读 · 0 评论 -
SWT让窗体居中显示
protected void createContents() { shell = new Shell(display,SWT.NO_TRIM|SWT.CLOSE); shell.setSize(450, 300); shell.setText("SWT Application"); //第一种方法 //获取屏幕高度和宽度 int screenH =原创 2014-05-01 22:35:37 · 1052 阅读 · 0 评论 -
SWT重写窗体最小化到磁盘
final Tray tray = display.getSystemTray(); final TrayItem trayItem = new TrayItem(tray, SWT.NONE); trayItem.setVisible(false); trayItem.setToolTipText(shell.get原创 2014-04-30 16:21:00 · 699 阅读 · 0 评论 -
SWT 中TableView显示数据
package com.chni.from;import java.util.ArrayList;public class Windows {protected Shell shell;private Table table;// private Tree table;/*** Launch the application.* @param args*/public s原创 2014-03-17 21:27:20 · 3435 阅读 · 0 评论 -
SWT中Shell中的属性设置
BORDER——当只有BORDER的时候,窗口是一个只有细细白色边框的空白窗口,没有title那一圈蓝色的边框,也没有最大化,最小化,关闭。不能resize,不能移动。在任务栏里右键没有反应。 CLOSE——当只有CLOSE的时候,窗口会出现蓝色的边框,并且有title,title上显示的是setText的内容,没有title就算setText指定了内容也无法显示。没有最大化,最小化,可以原创 2014-04-29 13:24:09 · 2474 阅读 · 0 评论