add Dev Part
This commit is contained in:
26
DEV/DEV3.1/TP02/Exercise1/Part2/ImageWindow.java
Normal file
26
DEV/DEV3.1/TP02/Exercise1/Part2/ImageWindow.java
Normal file
@@ -0,0 +1,26 @@
|
||||
import java.io.File;
|
||||
|
||||
import java.awt.CardLayout;
|
||||
|
||||
import javax.swing.ImageIcon;
|
||||
import javax.swing.JFrame;
|
||||
|
||||
public class ImageWindow extends JFrame {
|
||||
|
||||
private CardLayout card;
|
||||
|
||||
public ImageWindow() {
|
||||
this.card = new CardLayout();
|
||||
|
||||
File resourcesDirectory = new File("../resources/");
|
||||
|
||||
if(resourcesDirectory.exists() && resourcesDirectory.isDirectory()) {
|
||||
File[] files = resourcesDirectory.listFiles();
|
||||
|
||||
if(files != null) {
|
||||
for(File file : files) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user