//当弹出就把 新窗口嵌入新定义的一个shell,因为我们没有显示这个shell所有是不可见的,接着关闭这个新窗口shell,取出我们要URL,实现代码如下:
browser.addOpenWindowListener(new OpenWindowListener() {
public void open(WindowEvent paramWindowEvent) {
final Shell shell=new Shell(getShell())
final Browser browser2=new Browser(shell,SWT.NONE)
paramWindowEvent.browser=browser2
//将 事件用我的浏览器打开
paramWindowEvent.display.asyncExec(new Runnable(){
//swt对外观部件的更改必须在SWT异步线程中进行
@Override
public void run() {
// TODO 自动生成的方法存根
String url=browser2.getUrl()
browser.setUrl(url)
shell.close()
}
})
}
})
991冠号表--517种\r\n第一大组共发行97个冠号.\r\n其中补票6种:AD,AE,AG,AH,AI,AJ\r\n--ACADAEAGAHAIAJBABBBCBDBEBFBGBHBIBJCACBCCCDCECFCGCHCICJDADBDCDDDEDFDGDHDIDJ\r\nEAEBECEDEEEFEGEHEIEJFAFBFCFDFEFFFGFHFIFJ\r\nGAGBGCGDGEGFGGGHGIGJHAHBHCHDHEHFHGHHHIHJ\r\nIAIBICIDIEIFIGIHIIIJJAJBJCJDJEJFJGJHJIJJ\r\n第二大组共发行100个冠号.\r\n其中补票6种:UA,UB,UC,UD,UE,UF.\r\nPAPBPCPDPEPFPGPHPIPJQAQBQCQDQEQFQGQHQIQJ\r\nRARBRCRDRERFRGRHRIRJSASBSCSDSESFSGSHSISJ\r\nTATBTCTDTETFTGTHTITJUAUBUCUDUEUFUGUHUIUJ\r\nWAWBWCWDWEWFWGWHWIWJXAXBXCXDXEXFXGXHXIXJ\r\nYAYBYCYDYEYFYGYHYIYJZAZBZCZDZEZFZGZHZIZJ\r\n第三大组已发100个冠号.\r\n其中补票6种:HS,HT,HU,HW,HX,HY,HZ.\r\nAPAQARASATAUAWAXAYAZBPBQBRBSBTBUBWBXBYBZ\r\nCPCQCRCSCTCUCWCXCYCZDPDQDRDSDTDUDWDXDYDZ\r\nEPEQERESETEUEWEXEYEZFPFQFRFSFTFUFWFXFYFZ\r\nGPGQGRGSGTGUGWGXGYGZHPHQHRHSHTHUHWHXHYHZ\r\nIPIQIRISITIUIWIXIYIZJPJQJRJSJTJUJWJXJYJZ\r\n第四大组已发99个冠号.\r\n其中补票7种:XSXT,XU,XW,XX,XY,XZ.\r\nPPPQPRPSPTPUPWPXPYPZQPQQQRQSQTQUQWQXQYQZ\r\nRPRQRRRSRTRURWRXRYRZSPSQSRSSSTSUSWSXSYSZ\r\nTPTQTRTSTTTUTWTXTYTZUPUQURUSUT一UWUXUYUZ\r\nWPWQWRWSWTWUWWWXWYWZXPXQXRXSXTXUXWXXXYXZ\r\nYPYQYRYSYTYUYWYXYYYZZPZQZRZSZTZUZWZXZYZZ\r\n第五大组已发46个冠号.\r\n其中补票6种:YKYLYMYNYOUO\r\nPKPLPMPNPOQKQLQMQNQORKRLRMRNROSKSLSMSNSO\r\nTKTLTMTNTOUKULUMUOWKWLWMWNXKXLXMXNXO\r\nYKYLYMYNYOZLZNZO\r\n第六大组已发45个冠号.\r\n其中补票4种:MSMUMYMZ\r\nKPKQKRKSKTKUKWKXKYKZLPLQLRLSLTLULWLXLYLZ\r\nMPMSMUMYMZNPNQNRNSNTNUNWNXNYNZ\r\nOPOQOROSOTOUOWOXOYOZ\r\n第七大组已发30个冠号.\r\n其中补票3种:JKJMJO\r\nANBKDKDLDMDNEKELEMENEOFKFLFMFNGKGLGNGOHKHMIMJKJMJO