Hide the file dropper on exit.

This commit is contained in:
Matthew Messinger 2018-07-22 15:45:29 -04:00
parent 8e663c81d3
commit c5fca4c977

View file

@ -1,5 +1,7 @@
package com.voxelmodpack.hdskins.upload.awt; package com.voxelmodpack.hdskins.upload.awt;
import org.lwjgl.opengl.Display;
import java.awt.Color; import java.awt.Color;
import java.awt.dnd.DropTarget; import java.awt.dnd.DropTarget;
import java.awt.dnd.DropTargetListener; import java.awt.dnd.DropTargetListener;
@ -12,8 +14,6 @@ import javax.swing.JPanel;
import javax.swing.JRootPane; import javax.swing.JRootPane;
import javax.swing.SwingConstants; import javax.swing.SwingConstants;
import org.lwjgl.opengl.Display;
public class FileDropper extends JFrame { public class FileDropper extends JFrame {
private static final long serialVersionUID = -2945117328826695659L; private static final long serialVersionUID = -2945117328826695659L;
@ -33,7 +33,7 @@ public class FileDropper extends JFrame {
super("Skin Drop"); super("Skin Drop");
setType(Type.UTILITY); setType(Type.UTILITY);
setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
setResizable(false); setResizable(false);
setTitle("Skin Drop"); setTitle("Skin Drop");
setSize(256, 256); setSize(256, 256);