import java.io.File;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.graphics.FontData;
import org.eclipse.swt.graphics.RGB;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.printing.PrintDialog;
import org.eclipse.swt.printing.Printer;
import org.eclipse.swt.printing.PrinterData;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.ColorDialog;
import org.eclipse.swt.widgets.DirectoryDialog;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.FileDialog;
import org.eclipse.swt.widgets.FontDialog;
import org.eclipse.swt.widgets.MessageBox;
import org.eclipse.swt.widgets.Shell;
public class DialogSample {
public static void main(String[] args) {
final Display display = new Display();
final Shell shell = new Shell(display);
shell.setLayout( new GridLayout());
shell.setText("Dialog Sample");
Button b1 = new Button ( shell,SWT.NONE);
b1.setText("消息提示框");
b1.addSelectionListener( new SelectionAdapter(){
public void widgetSelected(SelectionEvent e) {
//创建消息框对象,使用警告图标并显示是和否按钮
MessageBox box = new MessageBox( shell ,SWT.ICON_ERROR|SWT.YES|SWT.NO);
//设置对话框的标题
box.setText("错误消息对话框");
//设置对话框显示的消息
box.setMessage("读取文件发生错误!");
//打开对话框,将返回值赋给choice
int choice = box.open();
//打印出所选择的值
if (choice==SWT.YES)
System.out.print("Yes");
else if ( choice==SWT.NO)
System.out.print("No");
}
});
Button b2 = new Button ( shell,SWT.NONE);
b2.setText("目录选取对话框");
b2.addSelectionListener( new SelectionAdapter(){
public void widgetSelected(SelectionEvent e) {
DirectoryDialog dialog = new DirectoryDialog(shell);
//设置显示在窗口上方的提示信息
dialog.setMessage("请选择所要保存的文件夹");
//设置对话框的标题
dialog.setText("选择文件目录");
//设置打开时默认的文件目录
dialog.setFilterPath("C:\\");
//打开窗口,返回用户所选的文件目录
String saveFile = dialog.open();
if ( saveFile != null )
{
//创建一个File对象
File directory = new File(saveFile);
System.out.print(directory.getPath());
}
}
});
Button b3 = new Button ( shell,SWT.NONE);
b3.setText("文件open对话框");
b3.addSelectionListener( new SelectionAdapter(){
public void widgetSelected(SelectionEvent e) {
//创建一个打开对话框,样式设置为SWT.OPEN,其他也可以是SWT.SAVE、SWT.MULTI
FileDialog dialog = new FileDialog(shell,SWT.OPEN);
//设置打开默认的路径
dialog.setFilterPath(System.getProperty("java.home"));
//设置所打开文件的扩展名
dialog.setFilterExtensions(new String[] {"*.txt", "*.*"});
//设置显示到下拉框中的扩展名的名称
dialog.setFilterNames( new String[]{"Text Files (*.txt)", "All Files (*.*)"});
//打开窗口,返回用户所选的文件目录
String file = dialog.open();
if ( file != null )
{
System.out.print(file);
}
}
});
Button b5 = new Button ( shell,SWT.NONE);
b5.setText("文件save对话框");
b5.addSelectionListener( new SelectionAdapter(){
public void widgetSelected(SelectionEvent e) {
//创建一个打开对话框,样式设置为SWT.OPEN,其他也可以是SWT.SAVE、SWT.MULTI
FileDialog dialog = new FileDialog(shell,SWT.SAVE);
//设置打开默认的路径
dialog.setFilterPath(System.getProperty("java.home"));
//设置所打开文件的扩展名
dialog.setFilterExtensions(new String[] {"*.txt", "*.*"});
//设置显示到下拉框中的扩展名的名称
dialog.setFilterNames( new String[]{"Text Files (*.txt)", "All Files (*.*)"});
//打开窗口,返回用户所选的文件目录
String file = dialog.open();
if ( file != null )
{
System.out.print(file);
}
}
});
Button b4 = new Button ( shell,SWT.NONE);
b4.setText("颜色对话框");
b4.addSelectionListener( new SelectionAdapter(){
public void widgetSelected(SelectionEvent e) {
//创建一个颜色对话框
ColorDialog dialog = new ColorDialog(shell);
//设置默认选中的颜色
dialog.setRGB( new RGB( 255 ,255 ,128));
//打开对话框,将选中的颜色返回给rgb对象
RGB rgb = dialog.open();
if ( rgb != null )
{
System.out.print(rgb);
//创建颜色对象
Color color = new Color( display , rgb );
//在使用完颜色对象后,释放资源
color.dispose();
}
}
});
Button b55 = new Button ( shell,SWT.NONE);
b55.setText("字体对话框");
b55.addSelectionListener( new SelectionAdapter(){
public void widgetSelected(SelectionEvent e) {
//创建一个字体对话框
FontDialog dialog = new FontDialog (shell);
//设置默认选中的颜色
dialog.setRGB( new RGB( 255 ,255 ,128));
//打开对话框,将选中的字体返回给fontData对象
FontData fontData = dialog.open();
if ( fontData != null )
{
System.out.print(fontData);
//创建颜色对象
Font font = new Font( display , fontData );
//在使用完字体对象后,释放资源
font.dispose();
}
}
});
Button b6 = new Button ( shell,SWT.NONE);
b6.setText("打印对话框");
b6.addSelectionListener( new SelectionAdapter(){
public void widgetSelected(SelectionEvent e) {
//创建一个打印对话框
PrintDialog dialog = new PrintDialog (shell);
//打开对话框,将选中的字体返回给fontData对象
PrinterData printData = dialog.open();
if ( printData != null )
{
//创建打印对象
Printer printer = new Printer( printData );
//在使用打印对象后,释放资源
printer.dispose();
}
}
});
//shell.setSize(200, 150);
shell.pack();
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
display.dispose();
}
}相关推荐
swt 使用基本控件与对话框
第4章 使用基本控件与对话框.pdf 第4章 使用基本控件与对话框.pdf eclipse插件开发笔记,使用基本控件与对话框
java swt 对话框,第八天:那SWT提供了哪些对话框呢
作者:梁祺 (eclipsesbs@gmail.com)?来自:http://www.benisoft.net/day8/index.html?SWT提供了一系列对话框类,帮助我们调用哪些和操作系统密切相关的对话框,这些对话框有:FileDialog:打开或保存文件。DirectoryDialog:选取目录。ColorDialog:选取颜色。FontDialog:选取字体。MessageBox:和...
SWT 弹出对话框 可以选择的图标种类
SWT的MessageBox对话框 SWT有不同类型的对话框。有些对话框具有特殊的属性。 MessageBox messageBox = new MessageBox(shell, SWT.OK|SWT.CANCEL); if (messageBox.open() == SWT.OK) { System.out.println("Ok is pressed."); }
swt对话框
import java.io.File; import org.eclipse.swt.SWT; import org.eclipse.swt.events.SelectionAdapter; import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.graphics.Color; import or...
【初阶】手把手教你轻松上手Denodo | 连接数据库并创建基本视图 (二)
在本教程的第二部分,我们将涵盖:连接到数据库,与创建基本视图。
【20230415】Ubuntu22.04双屏显示触屏设置,解决触摸点和响应位置不一致的问题
双屏显示时,如果存在一个触摸屏,有可能会出现触摸点和响应位置不一致的问题。我的显示器配置如下:一个34寸,3440*1440;一个22英寸触摸屏,1920*1080。
Eclipse SWT 对话框(四)
首先申明下,本文为笔者学习《Eclipse插件开发学习笔记》的笔记,并加入笔者自己的理解和归纳总结。 1. 标准消息对话框 MessageBox可以方便地生成标准消息对话框。 setText()方法设置MessageBox的标题,setMessage()方法设置显示消息。 MessageBox的图标样式, SWT.ICON_ERROR,显示错误消息。 SWT.ICON_WARNING,显示警告消...
普冉PY32F002B ADC内部参考电压VREFINT的误差补偿与低功耗优化实践
本文详细介绍了普冉PY32F002B单片机在锂电池供电场景下ADC内部参考电压VREFINT的误差补偿与低功耗优化实践。通过分析GPIO配置、分压电阻匹配、采样时间设置等硬件设计要点,结合实时测量VREFINT电压值和软件补偿算法,有效提升了ADC测量精度至5mV以内,并实现了分压电路功耗控制与采样频率优化,为低成本消费电子项目提供了完整的解决方案。
SWT常用系统对话框
常用系统对话框 在SWT的开发过程中,用户还会经常使用到打印对话框、颜色对话框、字体对话框、文件对话框和目录对话框等对话框,本节将介绍这些对话框的使用。另外,每种类型的对话框都可以在本书源代码中找到实例。 15.8.1 打印对话框(PrintDialog) “打印”对话框中用户能选择打印机和设置打印的一些选项,如图15-8所示。 新建打印对话框通过PrintDialog,例如“Pri
TypeScript版LangChain环境配置全攻略:从零搭建AI应用开发环境
大语言模型(LLM)作为当前AI应用开发的核心技术,通过API接口为开发者提供了强大的自然语言处理能力。其工作原理基于Transformer架构,通过预训练和微调实现对人类语言的深度理解与生成。在工程实践中,开发者需要将LLM与外部工具、数据源和业务逻辑有效集成,这正是LangChain框架的技术价值所在——它提供了标准化的组件和接口,简化了复杂AI应用的构建流程。应用场景涵盖智能客服、内容生成、数据分析助手等多个领域。本文聚焦于TypeScript/JavaScript生态下的LangChain开发,详细
51单片机入门指南-基于STC89C52(持续更新)
一、环境介绍 编程IDE: keil5 单片机型号: STC89C51/52 开发板: 普中科技的开发板 完整PDF资源下载地址:https://download.youkuaiyun.com/download/xiaolong1126626497/19785856 二、51单片机开发手册介绍 2.1 前言 51单片机是对所有兼容Intel 8031指令系统的单片机的统称。 该系列单片机的始祖是Intel的8004单片机,后来随着Flash rom技术的发展,8004单片机取得了长足的进展,成为应用最.
java swt 对话框_Java代码 swt对话框
import java.io.File;import org.eclipse.swt.SWT;import org.eclipse.swt.events.SelectionAdapter;import org.eclipse.swt.events.SelectionEvent;import org.eclipse.swt.graphics.Color;import org.eclipse.swt....
基于STM32、HAL库的ZMOD4510AI4R气体传感器驱动程序设计
ZMOD4510AI4R是Renesas公司推出的一款数字空气质量传感器,主要用于检测臭氧(O₃)和总挥发性有机化合物(TVOC)浓度。(status & 0x80)) // 检查数据就绪位。// 等待测量完成 (实际应用中应该使用非阻塞方式)// 转换为ppb (简化转换,实际应根据传感器文档校准)* @param hzmod: ZMOD4510句柄。* @param tvoc: TVOC浓度(ppb)* @param ozone: 臭氧浓度(ppb)* @param hi2c: I2C句柄。
java 进度条 swt_SWT综合实例+SWT进度条对话框代码
说明:SWT综合实例实现了一个QQ的简化界面,基本上用到了SWT的各方面;使用SWT要先导入一个SWT的dll文件,本例导入的dll文件名为:swt-win32-3139.dllQQ.java源文件内容如下:package com.awt.sample;import org.eclipse.jface.dialogs.MessageDialog;import org.eclipse.swt.SWT...
Python爬虫实战:医院科室排班智能采集系统 - 从零构建合规且高效的医疗信息爬虫(附CSV导出 + SQLite持久化存储)!
我长期专注 Python 爬虫工程化实战,主理专栏 👉 《Python爬虫实战》:从采集策略到反爬对抗,从数据清洗到分布式调度,持续输出可复用的方法论与可落地案例。内容主打一个“能跑、能用、能扩展”,让数据价值真正做到——抓得到、洗得净、用得上。
基于Simulink的六旋翼无人机动力分配仿真建模示例
六旋翼无人机概述特点:高冗余度、增强的负载能力和更好的故障容忍性。关键组件电机与螺旋桨:提供升力和推力。电调(ESC):控制电机转速。IMU(惯性测量单元):包括加速度计和陀螺仪,用于姿态估计。飞控板:处理传感器数据并生成控制信号。应用场景:航拍摄影、农业监测、物流配送等。仿真目标搭建一个简化的六旋翼无人机动力分配模型,涵盖电机驱动、姿态控制及位置控制过程。分析不同条件下的性能指标(如响应时间、稳定性等),并探讨六旋翼无人机的设计优化。
java swt 关闭_java – 单击外部关闭SWT shell
您可以将SWT.Deactivate侦听器附加到对话框的基础Shell.要附加侦听器,您可以覆盖Window :: configureShell,如下所示:@Overrideprotected void configureShell( Shell shell ) {super.configureShell( shell );shell.addListener( SWT.Deactivate, ev...
深度学习工具包 DeepLearningToolbox
深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[](https://bitdeli.com/free "Bitdeli Badge")
java swt 双屏_JAVA.SWT/JFace: SWT高级控件之对话框
《Eclipse SWT/JFACE 核心应用》 清华大学出版社 9.8 对话框SWT中的对话框有消息提示框(MessageBox)、文件目录对话框(DirectoryDialog)、文件对话框(FileDialog)、颜色对话框(ColorDialog)、字体对话框(FontDialog)、打印对话框(PrintDialog)等。import java.io.File;public class ...
复分析 阿尔福斯(Ahlfors) 第三版答案 英文
答案分为十章,有部分习题没有答案,全英文复分析阿尔福斯(Ahlfors) 第三版答案
廖雪峰Python教程[完整版]
廖雪峰的python教程整理的,已经排好版了,而且还是完整的,适合小白
java swt 文件选择,Java SWT文件对话框中的文件多选
//Java文件对话框实现文件多选主要有三种方式、我在这里举三个例子//他们分别对应Java的三个GUI可视编程框架,这里推荐大家使用Swing或者SWT的//1、AWTFileDialog dialog=new FileDialog(new Frame(),"默认打开目录",FileDialog.LOAD);dialog.FileDialog(Dialog parent,String title...
IMSL CNL 7.0.0 (x86-64)Crack
IMSL CNL 7.0.0 (x86-64)Crack intel的算法库破解文件,这是C++版本的破解文件
java swt 双屏_SWT(JFace)体验之打开多个Form
代码很简单,如下所示:package swt_jface.demo1;import org.eclipse.swt.SWT;import org.eclipse.swt.graphics.GC;import org.eclipse.swt.graphics.Image;import org.eclipse.swt.widgets.Display;import org.eclipse.swt.wid...
java swt 打印_SWT(JFace) 打印功能
演示代码如下:package swt_jface.demo11;import org.eclipse.swt.graphics.GC;import org.eclipse.swt.printing.PrintDialog;import org.eclipse.swt.printing.Printer;import org.eclipse.swt.printing.PrinterData;impor...
swt,用在web上的下载保存的功能,跟服务器交互
昨天搞了一大天,终于搞明白了swt用在web上的的基本思想 先说说我的想要实现的功能,我是想在用户机上把查询出来的数据保存,可是我在用户机上点了保存按钮后,那个保存的对话框竟然是在服务器上打开的,我还以为我写的代码有问题,经过昨天一天的搜罗资料,我才明白,下面是重点了,swt是调用JNI的,所以想要在用户机上打开对话框,那么就需要用户机上安装第三方软件了,如果没有安装,那么用户是对服务器进行操作的...
swt 文件 文件夹 选择
SWT实现的文件夹选择窗口 /** * 文件选择对话框 */ protected void fileDig(Shell parent){ //新建文件对话框,并设置为打开的方式 FileDialog filedlg=new FileDialog(parent,SWT.OPEN); //设置文件对话框的标题 filedl...
addlistener java_Java Table.addListener方法代码示例
import org.eclipse.swt.widgets.Table; //导入方法依赖的package包/类@Overrideprotected Control createDialogArea(Composite parent) {Composite container = (Composite) super.createDialogArea(parent);container.getSh...
java swt 关闭,SWT对话框系列:倒计时关闭对话框.doc
packagecom.cnex.oss.managerupdate.tools;importjava.beans.PropertyChangeListener;importjava.beans.PropertyChangeSupport;importjava.util.Timer;importjava.util.TimerTask;importorg.eclipse.jface.dialogs.I...
392



被折叠的 条评论
为什么被折叠?



