xml文件比较java实例

xml文件比较java实例

ID:13948753

大小:27.50 KB

页数:4页

时间:2018-07-25

xml文件比较java实例_第1页
xml文件比较java实例_第2页
xml文件比较java实例_第3页
xml文件比较java实例_第4页
资源描述:

《xml文件比较java实例》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、xml文件比较java实例importjava.awt.event.ActionEvent;importjava.awt.event.ActionListener;importorg.eclipse.swt.SWT;importorg.eclipse.swt.layout.GridLayout;importorg.eclipse.swt.layout.RowLayout;importorg.eclipse.swt.widgets.Button;importorg.eclipse.swt.widgets.Co

2、mposite;importorg.eclipse.swt.widgets.Display;importorg.eclipse.swt.widgets.FileDialog;importorg.eclipse.swt.widgets.Group;importorg.eclipse.swt.widgets.Label;importorg.eclipse.swt.widgets.Shell;importorg.eclipse.swt.widgets.Text;classButtonLisimplementsAc

3、tionListener{publicvoidactionPerformed(ActionEvente){//打开文件路径FileDialogfd=newFileDialog(getShell(),SWT.OPEN);fd.setText("请选择路径");Stringpath=fd.open();}}publicclassHelloJava{/***@paramargs*/publicstaticvoidmain(String[]args){//TODOAuto-generatedmethodstubDi

4、splaydisplay=newDisplay();Shellshell=newShell(display);RowLayoutlayout=newRowLayout(SWT.VERTICAL);shell.setLayout(layout);shell.setText("XML文件比较界面");shell.setSize(600,500);Compositecomposite=newComposite(shell,SWT.NONE);Groupgroup1=newGroup(composite,SWT.N

5、ONE);group1.setBounds(5,25,550,60);Groupgroup2=newGroup(composite,SWT.NONE);group2.setBounds(5,100,550,60);Groupgroup3=newGroup(composite,SWT.NONE);group3.setBounds(5,200,550,70);Groupgroup5=newGroup(composite,SWT.NONE);group5.setBounds(5,300,550,70);shell

6、.setLayout(newGridLayout(2,true));LabellabelFirst=newLabel(group1,SWT.NONE);labelFirst.setBounds(10,20,100,30);labelFirst.setText("请输入源文件:");TexttextFirst=newText(group1,SWT.BORDER);textFirst.setBounds(160,20,300,30);Buttonbutton1=newButton(group1,SWT.NONE

7、);button1.setText("...");button1.setBounds(480,20,50,30);//button1.addMouseListener(listener);LabellabelLast=newLabel(group2,SWT.NONE);labelLast.setBounds(10,20,100,30);labelLast.setText("请输入比较文件:");TexttextLast=newText(group2,SWT.BORDER);textLast.setBound

8、s(160,20,300,30);Buttonbutton2=newButton(group2,SWT.NONE);button2.setText("...");button2.setBounds(480,20,50,30);LabelpathInput=newLabel(group3,SWT.NONE);pathInput.setBounds(10,20,138,30);pathInput.setText("请

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。