2016-12-27 11:56:37 +01:00
|
|
|
package com.boydti.fawe.installer;
|
|
|
|
|
|
|
|
import java.awt.Frame;
|
|
|
|
import java.awt.event.ActionEvent;
|
|
|
|
import javax.swing.JFrame;
|
|
|
|
|
|
|
|
public class MinimizeButton extends InteractiveButton {
|
|
|
|
private final JFrame window;
|
|
|
|
|
|
|
|
public MinimizeButton(JFrame window) {
|
|
|
|
super("-");
|
|
|
|
this.window = window;
|
|
|
|
}
|
2017-06-20 11:00:30 +02:00
|
|
|
|
2016-12-27 11:56:37 +01:00
|
|
|
@Override
|
|
|
|
public void actionPerformed(ActionEvent e) {
|
|
|
|
window.setState(Frame.ICONIFIED);
|
|
|
|
}
|
|
|
|
}
|