01: package vicazh.hyperpool;
02:
03: import org.jdesktop.jdic.desktop.*;
04: import java.awt.event.*;
05: import java.net.*;
06:
07: /**
08: * The graphic url processor
09: *
10: * @author Victor Zhigunov
11: * @version 0.3.0
12: */
13: public class IURL implements ActionListener {
14: private URL url;
15:
16: /**
17: * @param url
18: * url
19: */
20: public IURL(URL url) {
21: this .url = url;
22: }
23:
24: public void actionPerformed(ActionEvent e) {
25: try {
26: Desktop.browse(url);
27: } catch (Exception ex) {
28: //ex.printStackTrace();
29: }
30: }
31: }
|