started implementing ApplicationFrame.init() -- further work needed
This commit is contained in:
parent
c157981253
commit
536081b015
@ -1,14 +1,36 @@
|
||||
package cicaprojekt;
|
||||
|
||||
import javax.swing.*;
|
||||
import javax.swing.filechooser.FileNameExtensionFilter;
|
||||
import javax.swing.plaf.basic.BasicInternalFrameTitlePane;
|
||||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class ApplicationFrame implements Runnable
|
||||
{
|
||||
private JFrame jframe;
|
||||
private JPanel mapselectorpanel;
|
||||
private JPanel gamepanel;
|
||||
|
||||
|
||||
public ApplicationFrame(){
|
||||
public ApplicationFrame(){}
|
||||
|
||||
public void init(){
|
||||
jframe = new JFrame();
|
||||
mapselectorpanel = new JPanel();
|
||||
|
||||
List<File> dungeons = new ArrayList<>();
|
||||
File dir = new File(System.getProperty("user.dir"));
|
||||
FileNameExtensionFilter filter = new FileNameExtensionFilter("dungeon");
|
||||
|
||||
for (File f : dir.listFiles()) {
|
||||
if (filter.accept(f)){
|
||||
dungeons.add(f);
|
||||
}
|
||||
}
|
||||
|
||||
//TODO create a JTable and put it into mapselectorpanel
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user