Package csa.gui

Examples of csa.gui.ModalInternalFrame$JGlassPanel


            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;
            }

            if (filename.length()!=0)
View Full Code Here


            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;
            }

            if (filename.length()!=0)
View Full Code Here

    private void jButtonShowActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonShowActionPerformed

        if (currentImage==null) return;

        final ModalInternalFrame f;
        javax.swing.ImageIcon i = new ImageIcon(currentImage);
        JLabel label = new JLabel(i);

        f = new ModalInternalFrame("Picture", Configuration.getConfiguration().getMainFrame().getRootPane(), Configuration.getConfiguration().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){}
            }
        });
        f.setClosable(true);
        f.setVisible(true);

           

    }//GEN-LAST:event_jButtonShowActionPerformed
View Full Code Here

    {
        JFrame frame = Configuration.getConfiguration().getMainFrame();
        QuickHelpModal panel = new QuickHelpModal();
        panel.jEditorPane1.setContentType("text/html");
        panel.jEditorPane1.setText(html);
        JInternalFrame modal = new ModalInternalFrame("Help", frame.getRootPane(), frame, panel);
        panel.modelDialog = modal;
        modal.setVisible(true);
    }
View Full Code Here

    {
        JFrame frame = Configuration.getConfiguration().getMainFrame();
        QuickHelpModal panel = new QuickHelpModal();
        panel.jEditorPane1.setContentType("text/plain");
        panel.jEditorPane1.setText(text);
        JInternalFrame modal = new ModalInternalFrame("Help", frame.getRootPane(), frame, panel);
        panel.modelDialog = modal;
        modal.setVisible(true);
    }
View Full Code Here

        catch (Throwable e)
        {
            panel.jEditorPane1.setContentType("text/plain");
            panel.jEditorPane1.setText("CanĀ“t display page:\n"+page);
        }
        JInternalFrame modal = new ModalInternalFrame("Help", frame.getRootPane(), frame, panel);
        panel.modelDialog = modal;
        modal.setVisible(true);
    }
View Full Code Here

TOP

Related Classes of csa.gui.ModalInternalFrame$JGlassPanel

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.