Package modbuspal.main

Examples of modbuspal.main.ErrorMessage


        modbusPalPane.showScriptManagerDialog();

    }//GEN-LAST:event_removeInstanciatorButtonActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        ErrorMessage dialog = new ErrorMessage("Close");
        dialog.setTitle("Chart disabled");
        dialog.append("It seems that jFreeChart is not present on your computer, and it is required to draw the chart.");
        dialog.append("If you want to use the chart, go to http://www.jfree.org/jfreechart/.");
        dialog.setVisible(true);
    }//GEN-LAST:event_jButton1ActionPerformed
View Full Code Here


     * @param f the missing file
     * @return the replacement file selected by the user, or null.
     */
    public static File promptUserFileNotFound(Component parent, File f)
    {
        ErrorMessage msg = new ErrorMessage(2);
        msg.setTitle("Script not found");
        msg.append("The following file was not found:\r\n");
        msg.append(f.getPath()+"\r\n");
        msg.append("Use 'Browse' to select its new location or 'Abort' to skip loading this script.\r\n");
        msg.setButton(0, "Browse");
        msg.setButton(1, "Abort");
        msg.setVisible(true);

        if( msg.getButton()==0 )
        {
            JFileChooser fc = new JFileChooser( f.getParent() );
            fc.showDialog(parent, "Locate "+f.getName() );
            return fc.getSelectedFile();
        }
View Full Code Here

TOP

Related Classes of modbuspal.main.ErrorMessage

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.