package bluej.utility;

import javax.swing.*;
import java.io.File;


| A modified JFileChooser. Modifications are made for | displaying BlueJ packages with a specific icon and to clear the selection | field after traversing into a directory. | | @author Michael Kolling | class BlueJFileChooser extends JFileChooser{
| Create a new BlueJFileChooser. | | @param startDirectory directory to start the package selection in. | public BlueJFileChooser(String startDirectory) { super(startDirectory); setFileView(new PackageFileView()); }
| A directory was double-clicked. If it is a BlueJ package maybe | we want to treat it differently | @Override public void setCurrentDirectory(File dir) super.setCurrentDirectory(dir); } }

.   - BlueJFileChooser
.   BlueJFileChooser
.   setCurrentDirectory




31 neLoCode + 8 LoComm