Package se.llbit.chunky.ui

Examples of se.llbit.chunky.ui.TextInputDialog


    importBtn.setIcon(Icon.save.imageIcon());
    importBtn.setToolTipText("Import a gradient");
    importBtn.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        JDialog dialog = new TextInputDialog(
            "Import Gradient", "Gradient data:",
            GradientEditor.this);
        dialog.setVisible(true);
      }
    });
    exportBtn.setIcon(Icon.load.imageIcon());
    exportBtn.setToolTipText("Export current gradient");
    exportBtn.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        JDialog dialog = new TextOutputDialog(
            "Export Gradient", "Gradient data:",
            Sky.gradientJson(gradientUI.getGradient()).toCompactString());
        dialog.setVisible(true);
      }
    });

    posEdit.addActionListener(new ActionListener() {
      @Override
View Full Code Here

TOP

Related Classes of se.llbit.chunky.ui.TextInputDialog

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.