Skip to content
Snippets Groups Projects
Commit 73d5bf1a authored by Tim Molter's avatar Tim Molter
Browse files

fix for issue #99 - Why do the FileFilters within XChartPanel don't accept directories? (2)

parent a8520266
No related branches found
No related tags found
No related merge requests found
......@@ -151,7 +151,13 @@ public class XChartPanel extends JPanel {
@Override
public boolean accept(File f) {
return true;
if (f.isDirectory()) {
return true;
}
String s = f.getName();
return s.endsWith(".jpg") || s.endsWith(".JPG");
}
@Override
......@@ -167,7 +173,13 @@ public class XChartPanel extends JPanel {
@Override
public boolean accept(File f) {
return true;
if (f.isDirectory()) {
return true;
}
String s = f.getName();
return s.endsWith(".bmp") || s.endsWith(".BMP");
}
@Override
......@@ -183,7 +195,13 @@ public class XChartPanel extends JPanel {
@Override
public boolean accept(File f) {
return true;
if (f.isDirectory()) {
return true;
}
String s = f.getName();
return s.endsWith(".gif") || s.endsWith(".GIF");
}
@Override
......@@ -199,7 +217,13 @@ public class XChartPanel extends JPanel {
@Override
public boolean accept(File f) {
return true;
if (f.isDirectory()) {
return true;
}
String s = f.getName();
return s.endsWith(".png") || s.endsWith(".PNG");
}
@Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment