blob: bd38b175cee877bf40e70be4e2bff1e4d1f6c39c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
package org.openslx.dozmod.gui.window;
import java.awt.Frame;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.JFrame;
import org.apache.log4j.Logger;
import org.openslx.dozmod.Config;
import org.openslx.dozmod.gui.window.layout.VirtualizerNoticeWindowLayout;
import org.openslx.dozmod.util.OpenLinks;
import org.openslx.dozmod.util.OpenLinks.Link;
@SuppressWarnings("serial")
public class VirtualizerNoticeWindow extends VirtualizerNoticeWindowLayout {
private final static Logger LOGGER = Logger.getLogger(VirtualizerNoticeWindow.class);
public VirtualizerNoticeWindow(Frame modalParent) {
super(modalParent);
final VirtualizerNoticeWindow me = this;
setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
// function for close button
continueButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
Config.setVirtualizerRead(true);
me.dispose();
}
});
this.addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(WindowEvent e) {
Config.setVirtualizerRead(true);
}
});
btnDL.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
OpenLinks.openWebpage(Link.VMWARE);
}
});
//
// windowsDLButton.addActionListener(new ActionListener() {
// @Override
// public void actionPerformed(ActionEvent e) {
// //clickedWindowsDLButton();
// }
// });
}
public static void open(Frame modalParent) {
new VirtualizerNoticeWindow(modalParent).setVisible(true);
}
}
|