trackeditor: add missing file filter
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8222 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 5c13770a3583dbdde78936efde0ac16cb8ce37cf Former-commit-id: 8c8c643305b62f25042a1e5c5bfdb91df6530e9d
This commit is contained in:
parent
f8353de288
commit
d42e199449
2 changed files with 6 additions and 2 deletions
|
@ -58,6 +58,7 @@ import javax.swing.JPanel;
|
|||
import javax.swing.JScrollPane;
|
||||
import javax.swing.JToggleButton;
|
||||
import javax.swing.JToolBar;
|
||||
import javax.swing.filechooser.FileNameExtensionFilter;
|
||||
|
||||
import plugin.Plugin;
|
||||
import plugin.torcs.TorcsPlugin;
|
||||
|
@ -1312,8 +1313,11 @@ public class EditorFrame extends JFrame
|
|||
fc.setSelectedFile(null);
|
||||
fc.rescanCurrentDirectory();
|
||||
fc.setApproveButtonMnemonic(0);
|
||||
fc.setDialogTitle("Background image selection");
|
||||
fc.setDialogTitle("Background image file selection");
|
||||
fc.setVisible(true);
|
||||
fc.setAcceptAllFileFilterUsed(false);
|
||||
FileNameExtensionFilter filter = new FileNameExtensionFilter("RGB and PNG images", "rgb", "png");
|
||||
fc.addChoosableFileFilter(filter);
|
||||
fc.setCurrentDirectory(new File(System.getProperty("user.dir") + "/tracks"));
|
||||
int result = fc.showOpenDialog(this);
|
||||
if (result == JFileChooser.APPROVE_OPTION)
|
||||
|
|
|
@ -112,7 +112,7 @@ public class ImageProperties extends PropertyPanel
|
|||
fc.setSelectedFile(null);
|
||||
fc.rescanCurrentDirectory();
|
||||
fc.setApproveButtonMnemonic(0);
|
||||
fc.setDialogTitle("Background image selection");
|
||||
fc.setDialogTitle("Background image file selection");
|
||||
fc.setVisible(true);
|
||||
if(Editor.getProperties().getImage().equals(""))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue