Skip to content

Commit 42cc264

Browse files
committed
Added license note.
Also minor refactoring.
1 parent bb5d829 commit 42cc264

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

src/main/DepthMain.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// File is part of MagicEyeGenerator (c) msg-programs 2020, see LICENSE
2+
13
package main;
24

35
public class DepthMain {

src/main/Display.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// File is part of MagicEyeGenerator (c) msg-programs 2020, see LICENSE
2+
13
package main;
24

35
import java.awt.Graphics;
@@ -8,6 +10,7 @@
810

911
public class Display extends JPanel {
1012

13+
private static final long serialVersionUID = 1L;
1114
BufferedImage img = null;
1215

1316
public Display() {

src/main/GUI.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// File is part of MagicEyeGenerator (c) msg-programs 2020, see LICENSE
2+
13
package main;
24

35
import java.awt.Dimension;
@@ -8,7 +10,6 @@
810
import java.awt.event.ActionListener;
911
import java.awt.image.BufferedImage;
1012
import java.io.File;
11-
import java.io.IOException;
1213

1314
import javax.imageio.ImageIO;
1415
import javax.swing.JButton;
@@ -22,6 +23,8 @@
2223

2324
public class GUI extends JFrame implements ActionListener {
2425

26+
private static final long serialVersionUID = 1L;
27+
2528
private static final String THIS_DIR = ClassLoader.getSystemClassLoader().getResource(".").getPath()
2629
.replaceAll("%20", " ").substring(1);
2730

@@ -233,7 +236,7 @@ public void actionPerformed(ActionEvent e) {
233236
}
234237

235238
private File doFileSelect() {
236-
JFileChooser jfc = new JFileChooser();
239+
JFileChooser jfc = new JFileChooser(System.getProperty("user.home"));
237240
jfc.addChoosableFileFilter(new FileNameExtensionFilter("Images", "jpg", "jpeg", "png", "gif", "bmp", "wbmp"));
238241
int ret = jfc.showOpenDialog(null);
239242

src/main/StereoGen.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
// File is part of MagicEyeGenerator (c) msg-programs 2020, see LICENSE
2+
13
package main;
24

3-
import java.awt.Color;
45
import java.awt.Graphics2D;
56
import java.awt.image.BufferedImage;
67
import java.io.File;

0 commit comments

Comments
 (0)