Package org.jdesktop.application

Examples of org.jdesktop.application.ResourceMap


    }

    public static final String ACTION_SET_FS_BACKGROUND = "setFsBackground";
    @Action(name=ACTION_SET_FS_BACKGROUND)
    public void setFsBackground() {
        ResourceMap resourceMap = mediator.getApplication().getContext().getResourceMap(OptionsDialog.class);
        Color c = JColorChooser.showDialog(this, resourceMap.getString("color.request.title"), fsBackgroundPreview.getBackground());
        if (c != null) {
            fsBackgroundPreview.setBackground(c);
        }
    }
View Full Code Here


    }

    public static final String ACTION_SET_DEFAULT_FOLDER = "setDefaultFolder";
    @Action(name=ACTION_SET_DEFAULT_FOLDER)
    public void setDefaultFolder() {
        ResourceMap resourceMap = mediator.getApplication().getContext().getResourceMap(OptionsDialog.class);
        String folder = FolderRequestDialog.requestFolderFor(savePathShowTextField.getText(),
                resourceMap.getString("save.request.title"), resourceMap.getString("save.request.desc"));
        if (StringUtils.isNotBlank(folder)) {
            savePathShowTextField.setText(folder);
        }
    }
View Full Code Here

        initComponents();



        // status bar initialization - message timeout, idle icon and busy animation, etc
        ResourceMap resourceMap = getResourceMap();
        int messageTimeout = resourceMap.getInteger("StatusBar.messageTimeout");
        messageTimer = new Timer(messageTimeout, new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                statusMessageLabel.setText("");
            }
        });
        messageTimer.setRepeats(false);
        int busyAnimationRate = resourceMap.getInteger("StatusBar.busyAnimationRate");
        for (int i = 0; i < busyIcons.length; i++) {
            busyIcons[i] = resourceMap.getIcon("StatusBar.busyIcons[" + i + "]");
        }
        busyIconTimer = new Timer(busyAnimationRate, new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                busyIconIndex = (busyIconIndex + 1) % busyIcons.length;
                statusAnimationLabel.setIcon(busyIcons[busyIconIndex]);
            }
        });
        idleIcon = resourceMap.getIcon("StatusBar.idleIcon");
        statusAnimationLabel.setIcon(idleIcon);
        progressBar.setVisible(false);

        // connecting action tasks to status bar via TaskMonitor
        TaskMonitor taskMonitor = new TaskMonitor(getApplication().getContext());
View Full Code Here

     * Creates a {@link ResourceMap} using the currently configured builder.
     *
     * @return The newly created ResourceMap.
     */
    public ResourceMap build() {
        return new ResourceMap(parent, cLoader, bundleNames);
    }
View Full Code Here

        super(app);

        initComponents();

        // status bar initialization - message timeout, idle icon and busy animation, etc
        ResourceMap resourceMap = getResourceMap();
        int messageTimeout = resourceMap.getInteger("StatusBar.messageTimeout");
        messageTimer = new Timer(messageTimeout, new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                statusMessageLabel.setText("");
            }
        });
        messageTimer.setRepeats(false);
        int busyAnimationRate = resourceMap.getInteger("StatusBar.busyAnimationRate");
        for (int i = 0; i < busyIcons.length; i++) {
            busyIcons[i] = resourceMap.getIcon("StatusBar.busyIcons[" + i + "]");
        }
        busyIconTimer = new Timer(busyAnimationRate, new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                busyIconIndex = (busyIconIndex + 1) % busyIcons.length;
                statusAnimationLabel.setIcon(busyIcons[busyIconIndex]);
            }
        });
        idleIcon = resourceMap.getIcon("StatusBar.idleIcon");
        statusAnimationLabel.setIcon(idleIcon);
        progressBar.setVisible(false);

        // connecting action tasks to status bar via TaskMonitor
        TaskMonitor taskMonitor = new TaskMonitor(getApplication().getContext());
View Full Code Here

        super(app);

        initComponents();

        // status bar initialization - message timeout, idle icon and busy animation, etc
        ResourceMap resourceMap = getResourceMap();
        int messageTimeout = resourceMap.getInteger("StatusBar.messageTimeout");
        messageTimer = new Timer(messageTimeout, new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                statusMessageLabel.setText("");
            }
        });
        messageTimer.setRepeats(false);
        int busyAnimationRate = resourceMap.getInteger("StatusBar.busyAnimationRate");
        for (int i = 0; i < busyIcons.length; i++) {
            busyIcons[i] = resourceMap.getIcon("StatusBar.busyIcons[" + i + "]");
        }
        busyIconTimer = new Timer(busyAnimationRate, new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                busyIconIndex = (busyIconIndex + 1) % busyIcons.length;
                statusAnimationLabel.setIcon(busyIcons[busyIconIndex]);
            }
        });
        idleIcon = resourceMap.getIcon("StatusBar.idleIcon");
        statusAnimationLabel.setIcon(idleIcon);
        progressBar.setVisible(false);

        // connecting action tasks to status bar via TaskMonitor
        TaskMonitor taskMonitor = new TaskMonitor(getApplication().getContext());
View Full Code Here

        ButtonGroup group = new ButtonGroup();
        group.add(this.britishRadioButtonMenuItem);
        group.add(this.europeRadioButtonMenuItem);

        // status bar initialization - message timeout, idle icon and busy animation, etc
        ResourceMap resourceMap = getResourceMap();
        int messageTimeout = resourceMap.getInteger("StatusBar.messageTimeout");
        messageTimer = new Timer(messageTimeout, new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                statusMessageLabel.setText("");
            }
        });
        messageTimer.setRepeats(false);
        int busyAnimationRate = resourceMap.getInteger("StatusBar.busyAnimationRate");
        for (int i = 0; i < busyIcons.length; i++) {
            busyIcons[i] = resourceMap.getIcon("StatusBar.busyIcons[" + i + "]");
        }
        busyIconTimer = new Timer(busyAnimationRate, new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                busyIconIndex = (busyIconIndex + 1) % busyIcons.length;
            }
        });
        idleIcon = resourceMap.getIcon("StatusBar.idleIcon");

        // connecting action tasks to status bar via TaskMonitor
        TaskMonitor taskMonitor = new TaskMonitor(getApplication().getContext());
        taskMonitor.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
View Full Code Here

  {
/*  37 */     super(app);

/*  39 */     initComponents();

/*  43 */     ResourceMap resourceMap = getResourceMap();
/*  44 */     int messageTimeout = resourceMap.getInteger("StatusBar.messageTimeout").intValue();
/*  45 */     this.messageTimer = new Timer(messageTimeout, new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
      }
    });
/*  51 */     this.messageTimer.setRepeats(false);
/*  52 */     int busyAnimationRate = resourceMap.getInteger("StatusBar.busyAnimationRate").intValue();
/*  53 */     for (int i = 0; i < this.busyIcons.length; i++) {
/*  54 */       this.busyIcons[i] = resourceMap.getIcon("StatusBar.busyIcons[" + i + "]");
    }
/*  56 */     this.busyIconTimer = new Timer(busyAnimationRate, new ActionListener()
    {
      public void actionPerformed(ActionEvent e) {
/*  59 */         ClipTartView.access$002(ClipTartView.this, (ClipTartView.this.busyIconIndex + 1) % ClipTartView.this.busyIcons.length);
      }
    });
/*  63 */     this.idleIcon = resourceMap.getIcon("StatusBar.idleIcon");

/*  68 */     TaskMonitor taskMonitor = new TaskMonitor(getApplication().getContext());
/*  69 */     taskMonitor.addPropertyChangeListener(new PropertyChangeListener()
    {
      public void propertyChange(PropertyChangeEvent evt) {
View Full Code Here

/* 123 */     this.lblText = new JTextArea();
/* 124 */     this.bntClear = new JButton();

/* 126 */     this.mainPanel.setName("mainPanel");

/* 128 */     ResourceMap resourceMap = ((ClipTartApp)Application.getInstance(ClipTartApp.class)).getContext().getResourceMap(ClipTartView.class);
/* 129 */     this.btnCopy.setText(resourceMap.getString("btnCopy.text", new Object[0]));
/* 130 */     this.btnCopy.setName("btnCopy");
/* 131 */     this.btnCopy.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent evt) {
/* 133 */         ClipTartView.this.btnCopyActionPerformed(evt);
      }
    });
/* 137 */     this.btnHelp.setText(resourceMap.getString("btnHelp.text", new Object[0]));
/* 138 */     this.btnHelp.setName("btnHelp");
/* 139 */     this.btnHelp.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent evt) {
/* 141 */         ClipTartView.this.btnHelpActionPerformed(evt);
      }
    });
/* 145 */     this.jScrollPane1.setName("jScrollPane1");

/* 147 */     this.lblText.setColumns(20);
/* 148 */     this.lblText.setRows(5);
/* 149 */     this.lblText.setName("lblText");
/* 150 */     this.jScrollPane1.setViewportView(this.lblText);

/* 152 */     this.bntClear.setText(resourceMap.getString("bntClear.text", new Object[0]));
/* 153 */     this.bntClear.setName("bntClear");
/* 154 */     this.bntClear.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent evt) {
/* 156 */         ClipTartView.this.bntClearActionPerformed(evt);
      }
View Full Code Here

        super(app);

        initComponents();

        // status bar initialization - message timeout, idle icon and busy animation, etc
        ResourceMap resourceMap = getResourceMap();
        int messageTimeout = resourceMap.getInteger("StatusBar.messageTimeout");
        messageTimer = new Timer(messageTimeout, new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                statusMessageLabel.setText("");
            }
        });
        messageTimer.setRepeats(false);
        int busyAnimationRate = resourceMap.getInteger("StatusBar.busyAnimationRate");
        for (int i = 0; i < busyIcons.length; i++) {
            busyIcons[i] = resourceMap.getIcon("StatusBar.busyIcons[" + i + "]");
        }
        busyIconTimer = new Timer(busyAnimationRate, new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                busyIconIndex = (busyIconIndex + 1) % busyIcons.length;
                statusAnimationLabel.setIcon(busyIcons[busyIconIndex]);
            }
        });
        idleIcon = resourceMap.getIcon("StatusBar.idleIcon");
        statusAnimationLabel.setIcon(idleIcon);
        progressBar.setVisible(false);

        // connecting action tasks to status bar via TaskMonitor
        TaskMonitor taskMonitor = new TaskMonitor(getApplication().getContext());
View Full Code Here

TOP

Related Classes of org.jdesktop.application.ResourceMap

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.