Package net.sourceforge.dsnk.gui

Examples of net.sourceforge.dsnk.gui.GradientPanel


    });

    Container cont = parentWindow.getContentPane();
    if (cont instanceof GradientPanel) {
      GradientPanel contentPane = (GradientPanel) cont;
      contentPane.setBlurred(true);
      contentPane.repaint();
    }

    int option = fileChooser.showOpenDialog(parentWindow);

    if (cont instanceof GradientPanel) {
      GradientPanel contentPane = (GradientPanel) cont;
      contentPane.setBlurred(false);
      contentPane.repaint();
    }

    if (option == JFileChooser.APPROVE_OPTION) {
      File gumpFile = fileChooser.getSelectedFile();
      loadGump(gumpFile);
View Full Code Here


      }
    });

    Container cont = parentWindow.getContentPane();
    if (cont instanceof GradientPanel) {
      GradientPanel contentPane = (GradientPanel) cont;
      contentPane.setBlurred(true);
      contentPane.repaint();
    }

    int returnVal = fileChooser.showSaveDialog(parentWindow);

    if (cont instanceof GradientPanel) {
      GradientPanel contentPane = (GradientPanel) cont;
      contentPane.setBlurred(false);
      contentPane.repaint();
    }

    if (returnVal == JFileChooser.APPROVE_OPTION) {
      String path = fileChooser.getSelectedFile().getAbsolutePath();
      if (!path.endsWith(".png")) {
View Full Code Here

TOP

Related Classes of net.sourceforge.dsnk.gui.GradientPanel

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.