Package com.l2fprod.common.swing

Examples of com.l2fprod.common.swing.JDirectoryChooser.showSaveDialog()


  {
    JDirectoryChooser chooser = new JDirectoryChooser( defaultDirectory );
    chooser.setDialogTitle( title );
    chooser.setShowingCreateDirectory( true );
    chooser.setPreferredSize( new Dimension( 400, 400 ) );
    if( chooser.showSaveDialog( getParent() ) != JFileChooser.APPROVE_OPTION )
      return null;

    return chooser.getSelectedFile();

    // JFileChooser chooser = getChooser( action );
View Full Code Here


  {
    JDirectoryChooser chooser = new JDirectoryChooser( defaultDirectory );
    chooser.setDialogTitle( title );
    chooser.setShowingCreateDirectory( true );
    chooser.setAcceptAllFileFilterUsed( true );
    if( chooser.showSaveDialog( getParent() ) != JFileChooser.APPROVE_OPTION )
      return null;

    return chooser.getSelectedFile();

    // JFileChooser chooser = getChooser( action );
View Full Code Here

    public File openDirectory(Object action, String title, File defaultDirectory) {
        JDirectoryChooser chooser = new JDirectoryChooser(defaultDirectory);
        chooser.setDialogTitle(title);
        chooser.setShowingCreateDirectory(true);
        chooser.setPreferredSize(new Dimension(400, 400));
        if (chooser.showSaveDialog(getParent()) != JFileChooser.APPROVE_OPTION) {
            return null;
        }

        return chooser.getSelectedFile();
View Full Code Here

    public File saveAsDirectory(Object action, String title, File defaultDirectory) {
        JDirectoryChooser chooser = new JDirectoryChooser(defaultDirectory);
        chooser.setDialogTitle(title);
        chooser.setShowingCreateDirectory(true);
        chooser.setAcceptAllFileFilterUsed(true);
        if (chooser.showSaveDialog(getParent()) != JFileChooser.APPROVE_OPTION) {
            return null;
        }

        return chooser.getSelectedFile();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.