Examples of IconManager


Examples of net.suberic.util.gui.IconManager

  /**
   * This attempts to load an image for the given imageKey.
   */
  public Component loadImage(String imageKey) {
    Component returnValue = null;
    IconManager iconManager = Pooka.getUIFactory().getIconManager();
    ImageIcon icon = iconManager.getIcon(imageKey);
    if (icon != null) {
      returnValue = new JLabel(icon);
      ((JLabel)returnValue).setOpaque(true);
      labelTable.put(imageKey, returnValue);
    } else {
View Full Code Here

Examples of net.suberic.util.gui.IconManager

    JPanel returnValue = new JPanel();
    returnValue.setLayout(new BoxLayout(returnValue, BoxLayout.Y_AXIS));

    returnValue.add(Box.createVerticalGlue());

    IconManager iconManager = Pooka.getUIFactory().getIconManager();
   
    ImageIcon addButtonIcon = iconManager.getIcon(Pooka.getProperty("NewMessage.selectionPanel.button.add", "Right"));

    JButton addButton = new JButton(addButtonIcon);
    addButton.addActionListener(new AbstractAction() {
  public void actionPerformed(ActionEvent e) {
    confirmSelectedAddresses();
  }
      });
    returnValue.add(addButton);

    returnValue.add(Box.createVerticalGlue());

    ImageIcon removeButtonIcon = iconManager.getIcon(Pooka.getProperty("NewMessage.selectionPanel.button.remove", "Left"));

    JButton removeButton = new JButton(removeButtonIcon);
    removeButton.addActionListener(new AbstractAction() {
  public void actionPerformed(ActionEvent e) {
    removeSelectedAddresses();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.