Package net.datacrow.console.components

Examples of net.datacrow.console.components.DcHtmlEditorPane


                return getShortTextField(maxTextLength);
        }
    }
   
    public static DcHtmlEditorPane getHtmlEditorPane() {
        return new DcHtmlEditorPane();
    }
View Full Code Here


        setModal(true);
        setLocation(Utilities.getCenteredWindowLocation(getSize(), true));
    }
   
    private void build() {
        DcHtmlEditorPane tp = new DcHtmlEditorPane();

        getContentPane().setLayout(Layout.getGBL());
       
        JButton buttonClose = new JButton("Close");
        buttonClose.addActionListener(this);
        buttonClose.setActionCommand("close");
       
        JScrollPane scroller = new JScrollPane(tp);
        scroller.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
        scroller.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
       
        JPanel panelActions = new JPanel();
        panelActions.add(buttonClose);
        buttonClose.setMnemonic('C');
       
        getContentPane().add(scroller,      Layout.getGBC( 0, 0, 4, 1, 10.0, 10.0
                ,GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH,
                 new Insets( 5, 5, 5, 5), 0, 0));
        getContentPane().add(panelActions,  Layout.getGBC( 3, 1, 1, 1, 1.0, 1.0
                ,GridBagConstraints.SOUTHEAST, GridBagConstraints.NONE,
                 new Insets( 5, 5, 5, 0), 0, 0));
       
        String html =
            "<html><body>" +
            "<h1>Java parameters</h1>" +
            "<p>You can allow Data Crow to use more memory by starting Data Crow in the following way: </p>" +
            "<p>java -Xmx512m -jar datacrow.jar </p>" +
            "<p>In the above example Data Crow is allowed to use 512MB of memory.</p>" +
            "<br><h1>Data Crow parameters</h1>" +
            "<p>Data Crow supports the following parameters:</p>" +
            "<p><table>" +
                "<tr><td>-db:&lt;database name&gt;</td></tr>" +
                "<tr><td>Forces Data Crow to use another database.</td></tr>" +
                "<tr><td><br></td></tr>" +
                "<tr><td>-dir:&lt;installation directory&gt;</td></tr>" +
                "<tr><td>Use this parameter when Data Crow starts incorrectly and complains about missing directories (non Windows platform only).</td></tr>" +
                "<tr><td><br></td></tr>" +
                "<tr><td>-webserver</td></tr>" +
                "<tr><td>Starts the web server without starting the Data Crow GUI. Specify -credentials to avoid the login dialog.</td></tr>" +
                "<tr><td><br></td></tr>" +
                "<tr><td>-debug</td></tr>" +
                "<tr><td>Debug mode for additional logging information.</td></tr>" +
                "<tr><td><br></td></tr>" +
                "<tr><td>-nocache</td></tr>" +
                "<tr><td>Forces Data Crow to ignore the cached items and load everything fresh from the database.</td></tr>" +
                "<tr><td><br></td></tr>" +
                "<tr><td>-clearsettings</td></tr>" +
                "<tr><td>Loads the default Data Crow settings. Disgards all user settings.</td></tr>" +
                "<tr><td><br></td></tr>" +
                "<tr><td>-debug</td></tr>" +
                "<tr><td>Runs Data Crow in debug mode meaning that more information will be logged.</td></tr>" +
                "<tr><td><br></td></tr>" +
                "<tr><td>-datadir:&lt;path&gt;</td></tr>" +
                "<tr><td>Specifies an alternative location for the data folder. Spaces need to be substituted by %20.</td></tr>" +
                "<tr><td><br></td></tr>" +
                "<tr><td>-credentials:username/password</td></tr>" +
                "<tr><td>Specify the login credentials to start Data Crow without displaying the login dialog.</td></tr>" +
                "<tr><td>Example (username and password): java -jar datacrow.jar -credentials:sa/12345</td></tr>" +
                "<tr><td>Example (username without a password): java -jar datacrow.jar -credentials:sa</td></tr>" +
                "<tr><td><br></td></tr>" +
             "</table></p></body></html>";
        tp.setHtml(html);

        pack();
    }
View Full Code Here

TOP

Related Classes of net.datacrow.console.components.DcHtmlEditorPane

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.