Package net.sf.jftp.gui.framework

Examples of net.sf.jftp.gui.framework.HPanel


        host.setMinimumSize(new Dimension(500, 50));
        getContentPane().setLayout(new BorderLayout(5, 5));
        getContentPane().add("North", host);

        HPanel p = new HPanel();
        p.setLayout(new GridLayout(2, 2, 5, 3));

        //***MY CHANGES
        /*
        try {
                File f = new File(Settings.appHomeDir);
                f.mkdir();
                File f1 = new File(Settings.login);
                f1.createNewFile();
                File f2 = new File(Settings.login_def_sftp);
                f2.createNewFile();
                File f3 = new File(Settings.ls_out);
                f3.createNewFile();
                File f4 = new File(Settings.sortls_out);
                f4.createNewFile();
                File f5 = new File(Settings.sortsize_out);
                f5.createNewFile();
                File f6 = new File(Settings.permissions_out);
                f6.createNewFile();
        } catch (IOException ex) {
                ex.printStackTrace();
        }

        LoadSet l = new LoadSet();
        String login[] = l.loadSet(Settings.login_def_sftp);


        if (login[0] != null) {
                host.setText(login[0]);
                user.setText(login[1]);

        }
        */
        /*
        else {
                host.setText("localhost");
                user.setText("guest");

        }
        */
        /*
        if (Settings.getStorePasswords()) {
                if (login != null) {
                        pass.setText(login[2]);
                }

        } else
                pass.setText("");

        */
        //***end of my changes (for this section)
        //getContentPane().add(host);
        //getContentPane().add(new JLabel(" "));//port);
        //getContentPane()
        p.add(user);

        //getContentPane()
        p.add(pass);

        //getContentPane()
        p.add(new JLabel(""));

        //getContentPane()
        p.add(okP);

        okP.add(ok);

        getContentPane().add("South", p);

View Full Code Here


    JFtp.remoteDir.setCon(c);
    }
    */
    private void prepareBackgroundMessage()
    {
        HPanel p = new HPanel();
        p.add(backMode);
        p.add(frontMode);
        p.setLayout(new FlowLayout(FlowLayout.CENTER));

        backMode.addActionListener(this);
        frontMode.addActionListener(this);

        h.getContentPane().setLayout(new BorderLayout(10, 10));
View Full Code Here

    cancel.setRolloverEnabled(true);
   

        //text.setCellRenderer(new DirCellRenderer());

        HPanel cmdP = new HPanel();

        //  cmdP.add(rotate);
        cmdP.add(clear);

        cmdP.add(new JLabel("   "));

        cmdP.add(resume);
        cmdP.add(pause);

        cmdP.add(new JLabel("   "));

        cmdP.add(cancel);

        clear.setSize(24, 24);
        clear.setBorder(true);
        cancel.setSize(24, 24);
        cancel.setBorder(true);
View Full Code Here

                    Log.debug("File is too big - 200kb is the maximum, sorry.");

                    return;
                }

                HPanel f = new HPanel();

                JEditorPane pane = new JEditorPane(url);
                pane.setEditable(false);

                if(!pane.getEditorKit().getContentType().equals("text/html") &&
                       !pane.getEditorKit().getContentType().equals("text/rtf"))
                {
                    if(!pane.getEditorKit().getContentType().equals("text/plain"))
                    {
                        Log.debug("Nothing to do with this filetype - use the buttons if you want to transfer files.");

                        return;
                    }

                    pane.setEditable(false);
                }

                JScrollPane jsp = new JScrollPane(pane);

                f.setLayout(new BorderLayout());
                f.add("Center", jsp);
                JFtp.statusP.jftp.addToDesktop(url, f, 600, 400);
            }
            catch(Exception ex)
            {
                Log.debug("File error: " + ex);
View Full Code Here

TOP

Related Classes of net.sf.jftp.gui.framework.HPanel

Copyright © 2018 www.massapicom. 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.