-
Java生成一个文件打开的文件选择对话框窗口
Java生成一个文件打开的文件选择对话框窗口,和Win系统的浏览文件窗口相似,使用Java代码模拟实现的窗口程序,相关代码如下:
button.addActionListener(new ActionListener() { //按钮事件处理
public void actionPerformed(ActionEvent e) {
int state; //文件选择器返回状态
chooser.removeChoosableFileFilter(chooser.getAcceptAllFileFilter()); //移去所有文件过滤器
chooser.addChoosableFileFilter(new MyFileFilter("gif","图像文件")); //增加文件过滤器,接爱gif文件
if (comboBox.getSelectedIndex()==0) //组合框为"打开"
state=chooser.showOpenDialog(null); //显示打开文件对话框
else
state=chooser.showSaveDialog(null); //显示保存文件对话框
File file = chooser.getSelectedFile(); //得到选择的文件
- 2022-11-18 17:40:03下载
- 积分:1
-
InSAR是一种极具潜力的新型空间大地测量方法,但它也有其固有的限制,特别是受到大气层延迟(对流层延迟、电离层延迟等)、卫星轨道误差、地表状况和时变去相关性等影...
InSAR是一种极具潜力的新型空间大地测量方法,但它也有其固有的限制,特别是受到大气层延迟(对流层延迟、电离层延迟等)、卫星轨道误差、地表状况和时变去相关性等影响,很容易导致InSAR图像解释错误,而InSAR数据本身无法解决所存在的上述问题。而GPS可以精密定位,可以较为精确地确定电离层、对流层参数,是当前应用最广泛的一种空间大地测量手段。-InSAR is a potential new space geodetic methods, but it also has its inherent limitations. in particular by the delay in the atmosphere (troposphere delay, ionospheric delay, etc.), satellite orbit errors, Surface conditions and time-varying correlation to the impact of such very easily lead to wrong interpretation of InSAR image, InSAR data and by itself can not solve the above problems. GPS precision positioning can be more accurately determine the ionosphere, troposphere parameters, is the most widely used as a means of space geodesy.
- 2022-05-24 00:38:35下载
- 积分:1
-
你好,每天,是视觉的和白色的象棋源代码C++黑。请享受…
hello everyday, That is Visual C++ black and white chess source code. Please enjoy it.-hello everyday. That is Visual C black and white chess source cod e. Please enjoy it.
- 2022-02-21 03:50:22下载
- 积分:1
-
驱动源码
64位驱动读写 源码 文件 纯源码 可易语言调用(64-bit Driver Read-Write Source Files)
- 2019-05-20 22:43:49下载
- 积分:1
-
string
String类,分享一下。可以实现==, >, <, [], <<, Trim, Reverse, Find, upper, lower等功能(String脌脿 拢 卢 脰脧铆脪 禄脧脗 隆 拢 驴 脡脪脭脢渭脧脰 ==,)
- 2008-04-10 00:34:21下载
- 积分:1
-
对一个三层介质模型制作了人工合成地震记录
对一个三层介质模型制作了人工合成地震记录。(A synthetic seismological record was made for a three layer medium model.)
- 2018-03-05 21:15:24下载
- 积分:1
-
完整的算法求解背包问题通过C++动态规划。
The Complete Algorithm for the Knapsack Problem via Dynamic Programming in C++.
- 2022-04-28 21:52:52下载
- 积分:1
-
XUE-Saltwater_intrusion_into_the_Changjiang_River
薛培峰用FVCOM模式模拟长江盐水入侵的案例,很不错,很经典(Xue Peifeng FVCOM simulated by salt water intrusion in the case of the Yangtze River, is very good, very classic)
- 2010-12-03 17:01:53下载
- 积分:1
-
WBT314
说明: Asus laptop Bios Tool WBT ver.314
- 2019-05-12 00:08:13下载
- 积分:1
-
Test11
属于C++里继承与派生类的小程序,主要是多层派生里的指针继承问题,仅供参考(Belonging C++ inheritance and derived classes in a small program, mainly derived pointers in multilayer succession for reference purposes only)
- 2013-06-28 16:53:30下载
- 积分:1