Package csa.jportal.config

Examples of csa.jportal.config.Configuration


    // End of variables declaration//GEN-END:variables


    public static String askAccessCode()
    {
        Configuration C = Configuration.getConfiguration();
        if (C.getMainFrame() == null) return null;
        AskAccessCode ac = new AskAccessCode();
        ModalInternalFrame modal = new ModalInternalFrame("Enter access code", C.getMainFrame().getRootPane(), C.getMainFrame(), ac);
        ac.setDialog(modal);
        modal.setVisible(true);
        return ac.getString();
    }
View Full Code Here


        if (stype !=SAVE_OK)
        {
            String filename = "";
            if (stype == SAVE_MULTI)
            {
                Configuration C = Configuration.getConfiguration();
                if (C.getMainFrame() == null) return;
                CanSaveAsOneDialog ac = new CanSaveAsOneDialog();
                ModalInternalFrame modal = new ModalInternalFrame("Save as new image?", C.getMainFrame().getRootPane(), C.getMainFrame(), ac);
                ac.setDialog(modal);
                modal.setVisible(true);
                filename =  ac.getFilename();
            }
            if (stype == SAVE_NOK)
            {
                Configuration C = Configuration.getConfiguration();
                if (C.getMainFrame() == null) return;
                MustSaveAsOneDialog ac = new MustSaveAsOneDialog();
                ModalInternalFrame modal = new ModalInternalFrame("Save as new image!", C.getMainFrame().getRootPane(), C.getMainFrame(), ac);
                ac.setDialog(modal);
                modal.setVisible(true);
                filename =  ac.getFilename();
                if (filename.length()==0) return;
            }
View Full Code Here

        if (stype !=SAVE_OK)
        {
            String filename = "";
            if (stype == SAVE_MULTI)
            {
                Configuration C = Configuration.getConfiguration();
                if (C.getMainFrame() == null) return;
                CanSaveAsOneDialog ac = new CanSaveAsOneDialog();
                ModalInternalFrame modal = new ModalInternalFrame("Save as new image?", C.getMainFrame().getRootPane(), C.getMainFrame(), ac);
                ac.setDialog(modal);
                modal.setVisible(true);
                filename =  ac.getFilename();
            }
            if (stype == SAVE_NOK)
            {
                Configuration C = Configuration.getConfiguration();
                if (C.getMainFrame() == null) return;
                MustSaveAsOneDialog ac = new MustSaveAsOneDialog();
                ModalInternalFrame modal = new ModalInternalFrame("Save as new image!", C.getMainFrame().getRootPane(), C.getMainFrame(), ac);
                ac.setDialog(modal);
                modal.setVisible(true);
                filename =  ac.getFilename();
                if (filename.length()==0) return;
            }
View Full Code Here

    }//GEN-LAST:event_jButton13ActionPerformed

    private void jButton11ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton11ActionPerformed
        String path = jTextFieldEffectImage.getText();
        if (path.length() == 0) return;
        Configuration C = Configuration.getConfiguration();
        try {
            javax.swing.ImageIcon i = new ImageIcon(csa.util.UtilityString.cleanFileString(path));
            if (i!=null) {
                java.awt.Image image = i.getImage();
                final ModalInternalFrame f;
                JLabel label = new JLabel(i);

                f = new ModalInternalFrame("Picture", C.getMainFrame().getRootPane(), C.getMainFrame(), label);
                label.addMouseListener(new java.awt.event.MouseAdapter() {
                    @Override public void mouseClicked(java.awt.event.MouseEvent evt) {
                        try { f.setClosed(true); }catch(Throwable e){}
                    }
                });
View Full Code Here

    }//GEN-LAST:event_jButton18ActionPerformed

    private void jButton19ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton19ActionPerformed
        String path = jTextFieldEffectImage1.getText();
        if (path.length() == 0) return;
        Configuration C = Configuration.getConfiguration();
        try {
            javax.swing.ImageIcon i = new ImageIcon(csa.util.UtilityString.cleanFileString(path));
            if (i!=null) {
                java.awt.Image image = i.getImage();
                final ModalInternalFrame f;
                JLabel label = new JLabel(i);

                f = new ModalInternalFrame("Picture", C.getMainFrame().getRootPane(), C.getMainFrame(), label);
                label.addMouseListener(new java.awt.event.MouseAdapter() {
                    @Override public void mouseClicked(java.awt.event.MouseEvent evt) {
                        try { f.setClosed(true); }catch(Throwable e){}
                    }
                });
View Full Code Here

    @SuppressWarnings("empty-statement")
    private void jButton11ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton11ActionPerformed
        String path = jTextFieldEffectImage.getText();
        if (path.length() == 0) return;
        Configuration C = Configuration.getConfiguration();
        try
        {
            javax.swing.ImageIcon i = new ImageIcon(csa.util.UtilityString.cleanFileString(path));
            if (i!=null)
            {
                java.awt.Image image = i.getImage();
                final ModalInternalFrame f;
                JLabel label = new JLabel(i);

                f = new ModalInternalFrame("Picture", C.getMainFrame().getRootPane(), C.getMainFrame(), label);
                label.addMouseListener(new java.awt.event.MouseAdapter()
                {
                    @Override public void mouseClicked(java.awt.event.MouseEvent evt)
                    {
                        try { f.setClosed(true); }catch(Throwable e){}
View Full Code Here

TOP

Related Classes of csa.jportal.config.Configuration

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.