/**
* fDialog.java
* This class acts as the file dialog so that it will be easier to port to Java
* 2
* Created: Wed May 19 10:52:28 1999
*
* @author Nathan Stevens
* @version
*/
import java.awt.*;
import java.io.*;
public class fDialog
{
private Frame frame = new Frame();
private FileDialog fd;
private Component component;
public fDialog(Component com, String title)
{
fd = new FileDialog(frame, title);
}
// method to show dialog
public void show()
{
fd.show();
}
// Method to set background color
public void setBackground(Color color)
{
fd.setBackground(color);
}
// Method to get the file name
public String getFile()
{
return fd.getFile();
}
// Method to get the directory name
public String getDirectory()
{
return fd.getDirectory();
}
// Method to set the file
public void setFile(String f)
{
fd.setFile(f);
}
// Method to set the directory
public void setDirectory(String f)
{
fd.setDirectory(f);
}
// method to set filename filter
public void setFilenameFilter(FilenameFilter ff)
{
fd.setFilenameFilter(ff);
}
}
|