Changed the name of FileFinder to FileUtil
This commit is contained in:
parent
a9bc9997ca
commit
ce83415d1c
19 changed files with 315 additions and 59 deletions
|
|
@ -31,7 +31,7 @@ import javax.swing.text.Document;
|
|||
import javax.swing.text.Style;
|
||||
import javax.swing.text.StyleConstants;
|
||||
|
||||
import zutil.FileFinder;
|
||||
import zutil.FileUtil;
|
||||
|
||||
/**
|
||||
* Creates a Swing console window Thats takes System.in and
|
||||
|
|
@ -60,7 +60,7 @@ public class Console{
|
|||
|
||||
public Console(String title, int width, int height, int buffer, boolean tray){
|
||||
ConsoleInputStream in = new ConsoleInputStream();
|
||||
DEFAULT_ICON = FileFinder.find(DEFAULT_ICON).getAbsolutePath();
|
||||
DEFAULT_ICON = FileUtil.find(DEFAULT_ICON).getAbsolutePath();
|
||||
initUI(title, in);
|
||||
|
||||
bufferSize = buffer;
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import java.io.IOException;
|
|||
import javax.imageio.ImageIO;
|
||||
import javax.swing.JPanel;
|
||||
|
||||
import zutil.FileFinder;
|
||||
import zutil.FileUtil;
|
||||
import zutil.image.ImageUtil;
|
||||
|
||||
/**
|
||||
|
|
@ -35,7 +35,7 @@ public class JImagePanel extends JPanel {
|
|||
* @param img is the path to the image
|
||||
*/
|
||||
public JImagePanel(String img) throws IOException {
|
||||
this(ImageIO.read( FileFinder.find( img ) ));
|
||||
this(ImageIO.read( FileUtil.find( img ) ));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ import javax.swing.WindowConstants;
|
|||
import javax.swing.GroupLayout.Alignment;
|
||||
import javax.swing.LayoutStyle.ComponentPlacement;
|
||||
|
||||
import zutil.FileFinder;
|
||||
import zutil.FileUtil;
|
||||
import zutil.MultiPrintStream;
|
||||
import zutil.struct.HistoryList;
|
||||
import zutil.ui.JImagePanel;
|
||||
|
|
@ -89,7 +89,7 @@ public class Wizard implements ActionListener{
|
|||
finish.addActionListener( this );
|
||||
|
||||
// Set the image in the sidebar
|
||||
sidebar.setImage(ImageIO.read( FileFinder.getInputStream( bg ) ));
|
||||
sidebar.setImage(ImageIO.read( FileUtil.getInputStream( bg ) ));
|
||||
|
||||
// add the first page
|
||||
pages.add( start );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue