Custom ComboBoxEditor and event notification at the end of the edition

Hi,
I am trying to write a custom ComboBoxEditor that delegates editing to a JFormattedTextField for inputing only integers in a JComboBox. However unlike the JTable and JTree editors, I find that the documentation is not clear on how to notify the parent combo box that the editing has finished and the user value has been validated. Since ComboBoxEditor has the addActionListener() and removeActionListener() methods in its signature, I naturally assumed that I could fire an ActionEvent to notify the combo when for example the JFormattedTextField just fired a PropertyChangeEvent on the "value" property.
While it looks like this is working OK at first, this causes the following issue: when the component is displayed in a JOptionPane, the dialog box is closed as soon as the ActionEvent is fired which is definitely not the behavior we want the user to experience (note: the event is fired when the delegated editor loses focus for exemple by clicking in the JTextArea in the provided example). I find this quite odd as the default ComboBoxEditor does not behave this way: when the editor looses focus, the combo box simply fires an ItemEvent; however the code from the basic UI or the metal UI never fire an ActionEvent and thus supposedly never notify the parent combo (!). Of course if I disable the ActionEvent firing, the JOptionPane does not close but the JComboBox never fire an ItemEvent...
Do you have any idea or suggestions to fix this problem?
Note : for testing purposes, I also made a custom ComboBoxEditor delegating to a JSpinner*. This one experiences exactly the same issue than the one delegating to a JFormattedTextField.
*Speaking of which: how come JSpinner does not have an API for its own editor??
package test;
import java.awt.*;
import java.awt.event.*;
import java.beans.*;
import java.text.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.text.*;
* @author  fabriceb
public class TestComboBoxEditor extends JPanel {
  enum Flavor {
    J_FORMATTED_TEXT_FIELD, J_SPINNER, DEFAULT;
  private static final long serialVersionUID = 1l;
   * Default font sizes.
  private static final int[] DEFAULT_SIZE = {8, 9, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 36, 48, 72};
   * Editing flag.
  private boolean isEditing;
  private JComboBox sizeCombo = new JComboBox(new DefaultComboBoxModel());
  private JTextArea textArea = new JTextArea("abcdefghijklmnopqrstuvwxyz\nABCDEFGHIJKLMNOPQRSTUVWXYZ\n1234567890.:,;()[]{}<>/\\+-*=!?_'\"@#$%^%&\nThe quick brown fox jumps over the lazy dog. 1234567890");
  private Flavor flavor = Flavor.J_FORMATTED_TEXT_FIELD;
  private boolean fireActionPerformed = true;
  public TestComboBoxEditor(Flavor flavor) {
    super();
    setPreferredSize(new Dimension(500, 150));
    this.flavor = flavor;
    setLayout(new BorderLayout());
    add(sizeCombo, BorderLayout.NORTH);
    add(new JScrollPane(textArea), BorderLayout.CENTER);
    textArea.setEditable(false);
    textArea.setLineWrap(true);
    textArea.setRows(5);
    sizeCombo.setEditable(true);
    sizeCombo.setMaximumRowCount(5);
    switch (flavor) {
      case J_FORMATTED_TEXT_FIELD:
        sizeCombo.setEditor(new SizeComboBoxEditor());
        break;
      case J_SPINNER: {
        sizeCombo.setEditor(new Size2ComboBoxEditor());
    DefaultComboBoxModel sizeModel = (DefaultComboBoxModel) sizeCombo.getModel();
    for (int size : DEFAULT_SIZE) {
      sizeModel.addElement(size);
    sizeCombo.setSelectedItem(textArea.getFont().getSize());
    sizeCombo.addItemListener(new ItemListener() {
      @Override
      public void itemStateChanged(ItemEvent event) {
        if (isEditing) {
          return;
        switch (event.getStateChange()) {
          case ItemEvent.SELECTED:
              Object value = sizeCombo.getSelectedItem();
              System.out.println("Received " + value + "\t" + value.getClass());
              if ((value instanceof Integer) || (value instanceof Long)) {
                int size = ((Number) value).intValue();
                DefaultComboBoxModel sizeModel = (DefaultComboBoxModel) sizeCombo.getModel();
                int sizeCount = sizeModel.getSize();
                for (int i = 0; i <
                  sizeCount; i++) {
                  int val = ((Number) sizeModel.getElementAt(i)).intValue();
                  // Value already in combo.
                  if (size == val) {
                    break;
// Insert before current value.
                  else if (val > size) {
                    sizeModel.insertElementAt(size, i);
                    break;
                  // Add at end.
                  else if (i == sizeCount - 1) {
                    sizeModel.addElement(size);
                    break;
                applyNewFont();
            break;
   * Produces a new font from the user input.
  protected void applyNewFont() {
    int size = ((Number) sizeCombo.getSelectedItem()).intValue();
    Font font = textArea.getFont().deriveFont((float) size);
    textArea.setFont(font);
   * Self-test main.
   * @param args Arguments from the command line.
  public static void main(String... args) {
    SwingUtilities.invokeLater(new Runnable() {
       * {@inheritDoc}
      @Override
      public void run() {
        try {
          UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
          final JFrame frame = new JFrame("Test");
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.setLayout(new BoxLayout(frame.getContentPane(), BoxLayout.Y_AXIS));
          for (final Flavor flavor : Flavor.values()) {
            JPanel panel = new JPanel();
            panel.setLayout(new FlowLayout(FlowLayout.LEFT));
            panel.add(new TestComboBoxEditor(flavor));
            switch (flavor) {
              case J_FORMATTED_TEXT_FIELD:
              case J_SPINNER:
                JButton forwardEventButton = new JButton("Forward event");
                forwardEventButton.addActionListener(new ActionListener() {
                  @Override
                  public void actionPerformed(ActionEvent event) {
                    JOptionPane.showMessageDialog(frame, new TestComboBoxEditor(flavor), flavor + " - Event forwarded", JOptionPane.INFORMATION_MESSAGE);
                panel.add(forwardEventButton);
                JButton doNotForwardEventButton = new JButton("Do Not Forward event");
                doNotForwardEventButton.addActionListener(new ActionListener() {
                  @Override
                  public void actionPerformed(ActionEvent event) {
                    TestComboBoxEditor test = new TestComboBoxEditor(flavor);
                    test.fireActionPerformed = false;
                    JOptionPane.showMessageDialog(frame, test, flavor + " - Event not forwarded", JOptionPane.INFORMATION_MESSAGE);
                panel.add(doNotForwardEventButton);
                break;
              case DEFAULT:
                JButton openButton = new JButton("Dialog");
                openButton.addActionListener(new ActionListener() {
                  @Override
                  public void actionPerformed(ActionEvent event) {
                    JOptionPane.showMessageDialog(frame, new TestComboBoxEditor(flavor), flavor + " - Default editor", JOptionPane.INFORMATION_MESSAGE);
                panel.add(openButton);
            frame.add(panel);
          frame.pack();
          frame.setLocationRelativeTo(null);
          frame.setVisible(true);
        catch (Exception e) {
          e.printStackTrace();
   * A combo box editor that only accepts integers.
   * @author  fabriceb
  private class SizeComboBoxEditor implements ComboBoxEditor, PropertyChangeListener, FocusListener {
    private JFormattedTextField delegated = new JFormattedTextField(new NumberFormatter(NumberFormat.getIntegerInstance()));
    private EventListenerList listenerList = new EventListenerList();
    private boolean isEditing;
     * Creates a new instance.
    public SizeComboBoxEditor() {
      delegated.addPropertyChangeListener("value", this);
      delegated.addFocusListener(this);
      delegated.setBorder(null);
     * {@inheritDoc}
    @Override
    public Component getEditorComponent() {
      return delegated;
     * {@inheritDoc}
    @Override
    public void selectAll() {
      delegated.selectAll();
      delegated.requestFocus();
     * {@inheritDoc}
    @Override
    public void setItem(Object anObject) {
      isEditing = true;
      if (delegated.getValue() == null || !delegated.getValue().equals(anObject)) {
        delegated.setValue(anObject);
      isEditing = false;
     * {@inheritDoc}
    @Override
    public Object getItem() {
      return delegated.getValue();
     * {@inheritDoc}
    @Override
    public void addActionListener(ActionListener l) {
      listenerList.add(ActionListener.class, l);
     * {@inheritDoc}
    @Override
    public void removeActionListener(ActionListener l) {
      listenerList.remove(ActionListener.class, l);
    protected void fireActionEvent(Integer value) {
      Object listeners[] = listenerList.getListenerList();
      ActionEvent actionEvent = null;
      for (int i = listeners.length - 2; i >= 0; i -= 2) {
        if (listeners[i] == ActionListener.class) {
          // Lazily create the event.
          if (actionEvent == null) {
            actionEvent = new ActionEvent(delegated, ActionEvent.ACTION_PERFORMED, String.valueOf(value));
          ((ActionListener) listeners[i + 1]).actionPerformed(actionEvent);
     * {@inheritDoc}
    @Override
    public void propertyChange(PropertyChangeEvent event) {
      if (!isEditing) {
        Object value = delegated.getValue();
        if (value == null) {
          return;
        int val = ((Number) value).intValue();
        System.out.println("Should forward " + value);
        if (fireActionPerformed) {
          fireActionEvent(val);
    @Override
    public void focusGained(FocusEvent e) {
      System.out.println("JFormattedTextField: Focus gained.");
    @Override
    public void focusLost(FocusEvent e) {
      System.out.println("JFormattedTextField: Focus lost.");
   * A combo box editor that only accepts integers.
   * @author  fabriceb
  private class Size2ComboBoxEditor implements ComboBoxEditor, ChangeListener, FocusListener {
    private SpinnerNumberModel model = new SpinnerNumberModel(1, 1, 100, 1);
    private JSpinner delegated = new JSpinner(model);
    private EventListenerList listenerList = new EventListenerList();
    private boolean isEditing;
     * Creates a new instance.
    public Size2ComboBoxEditor() {
      delegated.addChangeListener(this);
      delegated.addFocusListener(this);
      delegated.setBorder(null);
     * {@inheritDoc}
    @Override
    public Component getEditorComponent() {
      return delegated;
     * {@inheritDoc}
    @Override
    public void selectAll() {
      //delegated.getEditor().selectAll();
      delegated.requestFocus();
     * {@inheritDoc}
    @Override
    public void setItem(Object anObject) {
      isEditing = true;
      if ((anObject != null) && (delegated.getValue() == null || !delegated.getValue().equals(anObject))) {
        delegated.setValue(anObject);
      isEditing = false;
     * {@inheritDoc}
    @Override
    public Object getItem() {
      return delegated.getValue();
     * {@inheritDoc}
    @Override
    public void addActionListener(ActionListener l) {
      listenerList.add(ActionListener.class, l);
     * {@inheritDoc}
    @Override
    public void removeActionListener(ActionListener l) {
      listenerList.remove(ActionListener.class, l);
    protected void fireActionEvent(Integer value) {
      Object listeners[] = listenerList.getListenerList();
      ActionEvent actionEvent = null;
      for (int i = listeners.length - 2; i >= 0; i -= 2) {
        if (listeners[i] == ActionListener.class) {
          // Lazily create the event.
          if (actionEvent == null) {
            actionEvent = new ActionEvent(delegated, ActionEvent.ACTION_PERFORMED, String.valueOf(value));
          ((ActionListener) listeners[i + 1]).actionPerformed(actionEvent);
     * {@inheritDoc}
    @Override
    public void stateChanged(ChangeEvent event) {
      if (!isEditing) {
        Object value = delegated.getValue();
        if (value == null) {
          return;
        int val = ((Number) value).intValue();
        System.out.println("Should forward " + value);
        if (fireActionPerformed) {
          fireActionEvent(val);
    @Override
    public void focusGained(FocusEvent e) {
      System.out.println("JSpinner: Focus gained.");
    @Override
    public void focusLost(FocusEvent e) {
      System.out.println("JSpinner: Focus lost.");
{code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

Thanks for the advice but that's not what I am looking for. My itend is to later have a fully custimized editor that implied pattern configuration (for currency, scientific units, etc..) as well as context popup support as well as complitly different kinds of editors (ie: not-textfield based) but that still fit within the combo area (ie: the address bar for Vista's Explorer).
I am still considering keeping a (weak) reference to the parent combo to manually edit its content when the PropertyChangeEvent is received.
Edited by: bouye on Sep 1, 2008 2:23 PM

Similar Messages

  • I hv lost my icon for iphoto on my Imac Mac OSX10.5.8.   I still hv my pics but can no longer creat albums and events.  If I upgrade to the latest Mountain Lion, will my pics go into the new iphoto?       I would like to update Mountain lion.Will

    I hv lost my icon for iphoto on my Imac Mac OSX10.5.8.   I still hv my pics but can no longer creat albums and events.  If I upgrade to the latest Mountain Lion, will my pics go into the new iphoto?

    From where did you lose the iPhoto icon? From the Dock? If so, then it's still in your Applications folder. Find it there then drag the icon back into the Dock. If it's no longer in Applications perhaps you've moved or renamed it. Use Spotlight to search for "iphoto."
    Upgrading to Mountain Lion will not affect your iPhoto Library unless you erase the hard drive first. Be sure you backup before any system upgrade.
    Upgrade Paths to Snow Leopard, Lion, and/or Mountain Lion
    You can upgrade to Mountain Lion from Lion or directly from Snow Leopard. Mountain Lion can be downloaded from the Mac App Store for $19.99. To access the App Store you must have Snow Leopard 10.6.6 or later installed.
    Upgrading to Snow Leopard
    You must purchase Snow Leopard through the Apple Store: Mac OS X 10.6 Snow Leopard - Apple Store (U.S.). The price is $19.99 plus tax. You will be sent physical media by mail after placing your order.
    After you install Snow Leopard you will have to download and install the Mac OS X 10.6.8 Update Combo v1.1 to update Snow Leopard to 10.6.8 and give you access to the App Store. Access to the App Store enables you to download Mountain Lion if your computer meets the requirements.
         Snow Leopard General Requirements
           1. Mac computer with an Intel processor
           2. 1GB of memory
           3. 5GB of available disk space
           4. DVD drive for installation
           5. Some features require a compatible Internet service provider;
               fees may apply.
           6. Some features require Apple’s MobileMe service; fees and
               terms apply.
    Upgrading to Lion
    If your computer does not meet the requirements to install Mountain Lion, it may still meet the requirements to install Lion.
    You can purchase Lion by contacting Customer Service: Contacting Apple for support and service - this includes international calling numbers. The cost is $19.99 (as it was before) plus tax.  It's a download. You will get an email containing a redemption code that you then use at the Mac App Store to download Lion. Save a copy of that installer to your Downloads folder because the installer deletes itself at the end of the installation.
         Lion System Requirements
           1. Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7,
               or Xeon processor
           2. 2GB of memory
           3. OS X v10.6.6 or later (v10.6.8 recommended)
           4. 7GB of available space
           5. Some features require an Apple ID; terms apply.
    Upgrading to Mountain Lion
    To upgrade to Mountain Lion you must have Snow Leopard 10.6.8 or Lion installed. Purchase and download Mountain Lion from the App Store. Sign in using your Apple ID. Mountain Lion is $19.99 plus tax. The file is quite large, over 4 GBs, so allow some time to download. It would be preferable to use Ethernet because it is nearly four times faster than wireless.
         OS X Mountain Lion - System Requirements
           Macs that can be upgraded to OS X Mountain Lion
             1. iMac (Mid 2007 or newer)
             2. MacBook (Late 2008 Aluminum, or Early 2009 or newer)
             3. MacBook Pro (Mid/Late 2007 or newer)
             4. MacBook Air (Late 2008 or newer)
             5. Mac mini (Early 2009 or newer)
             6. Mac Pro (Early 2008 or newer)
             7. Xserve (Early 2009)
         Are my applications compatible?
             See App Compatibility Table - RoaringApps.
         Am I eligible for the free upgrade?
             See Apple - Free OS X Mountain Lion upgrade Program.
         For a complete How-To introduction from Apple see Upgrade to OS X Mountain Lion.

  • When editing an image in Photoshop from Lightroom then saving it back to Lightroom, how do i get the image to go back and  sit next to the original? Mine is going to the end of the folder. Thanks Karen

    When editing an image in Photoshop from Lightroom then saving it back to Lightroom, how do i get the image to go back and sit next to the original image? Mine is going back to the end of the folder. Thanks Karen

    Hi Karen
    You may the sort set to Custom. Click the dropdown menu on the toolbar (to the right of the word sort) and change to capture time.
    If you can’t see the toolbar above the filmstrip press the T key. Press T again to hide.

  • Template Accouting FlexField and API needs to call at the End of the pgm

    I am working on the creating custom integrator for one of my custom table.
    1. created a Intergrater
    2. interface and registered my api as => xxcustom.insert_row
    3. Associated the intergrator with form function
    4. Created the Layout
    5. Created the Mapping
    6. Created the Templated to load the information.
    Sample template information
    Header1: 0001
    Header dt : 01-Jan-2009
    Line Amt Line details account no
    10 Test entry 12234.23434.11111.22222
    20 Test entry 23333.11111.34343.34343
    It is working file. For eachh Line my xxcustom.insert_row api has called. I am able to see the above 2 records in my custom table.
    My Question
    =============
    1. After the end of the total upload, i want create a sequence for the entire upload and to call my custom API. Is there any way to do this ?. Let say the seeded GL upload program. it is firing a concurrent program at the end of the Total template
    a) Can you suggest any alternate way or workaround for this.
    b) i didnt find any document or develper guide to do so. Please suggest.
    2. In the Line level we have account no. I want to pop up the Accounting Flexfield and user will select from the popup.
    Let say the Seeded GL Upload program, We have the facility, if we doble click the account no.. It will allow the user to select the Accouting flex field value.
    A) how to implemente the same in custom integrator
    b) Any workaround
    C) suggest any document to see it will be helpful for me.
    If anybody having similar requirement and you have any type of solution... Please suggest.
    Thanks
    Navas

    You want to have a bunch of tracks, play them in order, the first one plays then it stops and all you have to do is hit Play to continue to next track?
    This script will do it.
    Play the first track and iTunes will stop at the end and queue up the next song. Just press Play (or Spacebar) and it'll  play the second song and stop till the end of the playlist.
    No need to select any songs or do anything fancy.
    -> Stop Track!
    "This script applet runs in the background while an iTunes playlist is playing. Whenever the accompanying "STOP_TRACK_05sec.mp3" track is encountered, the script will stop iTunes and advance to the next track, which you can start manually."

  • I have the adobe cloud 9.99/ month photography package i downloaded lightroom 5.4, it told me it was a trial version, and i'm now at the end of the trial and it won't let me download the full version and i don't have a serial number

    i have the adobe cloud 9.99/ month photography package i downloaded lightroom 5.4, it told me it was a trial version, and i'm now at the end of the trial and it won't let me download the full version and i don't have a serial number. also, when i click buy, i get an error message saying, "application not found."

    There are two different LR’s, one with a serial-number licensing and one with a CC-signin license.
    You should uninstall the serial-number LR you have installed, then
    Quit the CC Desktop application,
    Restart the CC Desktop application—this will rescan what you have installed and not see LR,
    LR will now be on the CC Desktiop apps list, so install that.

  • I have an Iad2 and ever since ios6-there are issues.I get occasional lock-ups and have to reboot. The WSJ app freezes when running their videos to the end. The only work-around is to stop the video before it's over. Worse than windows me !!!!!

    My Ipad2 worked perfectly before ios6 upgrade. It now freezes occasionally and I have to reboot to get it to work. Also the WSJ app will now freeze if I try and run one of their videos that is imbedded in the article. My only work-around is to stop (press done) before the end of the video or I have to do a total reboot. The problems remind me of Windows ME . Will Apple resolve these issues or become more like Microsoft. Hopefully there will be a restore button in the future like Microsoft was forced to do because a lot of upgrades are just terrible. Am I crazy or are there other people having the same issues with ios6, or could this just be a coincidence and my ipad2 is starting to fail just when ios6 arrives ?

    I know this will not help but, the bluetooth headset I purchased for my wife works great and it pairs with our car and our sound bar in the livingroom (Motorola Droid Razr) 98.72.16.XT912.Verizon.en.US
    However I did not upgrade over the air but from a android web site and placed it on my external sd card. I believe this made the difference in why we had no issues and upgraded functionality has been great.
    Please note when I mention these bluetooth devices I mean the Razr connects with no problems.
    It also had no internet issues and none of the problems others have complained about in other threads.
    unfortunately when you say thousands have these issues I cannot say that is accurate. The hope is when large numbers of owners have updated to the Jelly Bean and are complaining inmase then Motorola will issue a patch to verizon to get out to the affected users.
    Of course now that Google owns Motorola Mobility and has laid off loads of workers it may never issue an os patch.

  • I keep track of family totals for fundraising at a school, I want a family name and totals for each fundraiser and then at the end of the year I would like an alphabetized list.  Can I do this in numbers?

    in numbers, how would I make a line for each family (100+)  a column for each fundraiser. and at mid year, and year end be able to print an alphabetical listing?
    example:     entertainment books          Chip Shoppe       Yankee Candle
    Smith          $350                                   $245                    $100
    Total at the end of the line, but I could live without.  I am just trying to lose the paperwork, and have it in the ipad for when parents approach me at meetings.
    Help!

    HI m,
    Using Numbers '09 (the Mac version), I'd use a table with one header row and two header columns.
    Family     Total     Ent.Books     Chip S.     Y. Candle
    Smith, J      $695        350            245             100
    Jones, T      $765        250            445               70
    An ascending sort on column A will put the families in alphabetical order (and carry the rest of the row along with them).
    The formula =SUM(2) in B2, and filled down from there, keeps the total for each family right beside the family name.
    You could add a Footer row at the bottom to keep totals for each column. Formula for column B: =SUM(B)
    I would leave the currency signs ($) off the amounts—they just clutter up the table.
    This assumes that the features listed are all supported on Numbers for iOS, the version running on your iPad.
    Regards,
    Barry

  • When i tried updating my iphone 4 to the latest IOS version 7.1.1 and at the end of the update it has the icon connect to itunes. When i try connecting to itunes it still doesnt program. Why is this? How can i fix it?

    When i tried updating my iphone 4 to the latest IOS version 7.1.1 it was updating until the end of the update where it had an icon which said connect to itunes. When i try connecting to itunes on my laptop it still doesnt program, by the way my itunes has the latest updae. Why is this? How can i fix it?

    Hey there Raymondd2014,
    It sounds like you had been updating the phone and now it is in recovery mode. Take a look at this info first:
    If you started your device in recovery mode by mistake, restart it to exit recovery mode. Or you can just wait—after 15 minutes the device will exit recovery mode by itself.
    If you are unable to get out of Recovery Mode, use the following article to restore your device with iTunes:
    If you can't update or restore your iOS device
    http://support.apple.com/kb/ht1808
    If you don't see your device in iTunes follow these steps for Windows.
    Thank you for using Apple Support Communities.
    Take care,
    Sterling

  • How do i start a motion tween by clicking a button and stop it at the end of the tween.

    Hi guys,
    I am creating a website for a project and i am trying to activate a box bropping down from another box when i click on the enter here button i have created. I have set the motion tween and its working when i preview i just unsure of the correct actionscript to start this tween when i have clicked the entere here button or how to stop it at the end of the tween.
    I am scared i may have made the layers in the wrong place, they are all currently in scene 1. does my second box that is dropping down need to be set inside the layers of the first box?
    Bit of a newbie at this.
    Thanks in advance!

    Create the dropping box movieclip as an animation by itself with a stop() coomand in the first frame and a stop() command in the last frame.  The click of the button should tell the movieclip to play(); at which point the animation should play and stop at the end.
    Another option would be to use an actionscript Tween to make the box drop.  Going that route the animation is what you code it to be and there is no need to have to stop it as it will end where you tell the Tween to end at.

  • I have the iPhone 3GS and I was updating to the IOS 5 version when at the end of the update it said updated failed. Now my phone is not recognized by my computer or any computer. The computer says it is a unknown device and my phone will not do anything.

    Need help finding out what happened to my phone and what I can do. After trying to update my iPhone 3GS to IOS 5 my phone will no longer work and is an unknown device to any computer. It is like it wiped out everything on the iPhone and has no hardware or data on it. At the end of the download and update of IOS 5 it said there was an error during the process and gave me no option but to push ok and know phone is not working. The screen shows the USB plug and iTunes symbol, but computers will not recognize device.

    What was the error number?  That would be very useful since the following gives actions for various errors.
    http://support.apple.com/kb/TS3694
    Try manually placing the iPod in recovery mode to see if that will make the iPod visible in iTunes.  See:
    http://support.apple.com/kb/HT1808

  • After download itunes installation began in windowx xp near the end of the installation the message says: it was not possible to write the value to the key Software / Classes / .mpg / OpenWithList / iTunes / .exe. Already reinstalled 3 times and always sa

    After download itunes installation began in windowx xp near the end of the installation the message says: it was not possible to write the value to the key Software / Classes / .mpg / OpenWithList / iTunes / .exe.
    Already reinstalled 3 times and always says the same message.
    thank you

    Only two had virus on windows XP this week and wiped them with Avast. The itunes asked me to install the update, and so I did. but it always gives me that message.

  • I have a new computer running os10.9. my old computer ran cs5.5(upgrade version). I am trying to get CS5.5onto my new computer. when i load cs5.5 towards the end of the install it asks for the cs5.5 serial number. i put that in and everything is accepted

    I have a new computer running os10.9. my old computer ran cs5.5(upgrade version). I am trying to get CS5.5onto my new computer. when i load cs5.5 towards the end of the install it asks for the cs5.5 serial number. i put that in and everything is accepted but then it asks for a serial number for a full version of a product which men is design premium cs3 but it doesn't give me that product as a choice from the drop down menu. it only gives me adobe master collection cs3. why when i have purchased all these different upgrades can i now not use them and how can i sort this out. i need cs5.5 on my new computer.

    Contact Adobe support:
    Serial number and activation chat support (non-CC)
    http://helpx.adobe.com/x-productkb/global/service1.html ( http://adobe.ly/1aYjbSC )

  • I clicked the download all button at the end of the list of my library iTunes which i believe is in the iCloud, i have iTunes match also, many downloads were reported as occurring over several hours and then received the warning startup dis

    i clicked the download all button at the end of the list of my library iTunes which i believe is in the iCloud, i have iTunes match also, many downloads were reported as occurring over several hours and then received the warning startup disc is full (activity monitor shows 3.99 of 4 GB used) and then another stating the download had not occurred due to the disc being full. most of the tunes still appear to be in the cloud but the disc is said to be full, spent a good period of time trying to investigate what has happened but failed...I'm not well up on all of this as an old chap so any help would be wonderful.....

    unclefossil wrote:
    Thanks Michael, what is the best way of backing up, should buy a cheap standalone external hard drive rather than relying on the Time Capsule which is quite sensitive...
    If you read the link I provided you'll get an idea of one way to maintain a backup of your music files, use Time Machine, and not take up as much room on the internal HDD/SSD.
    unclefossil wrote:
    i live in the Scottish Highlands where Broadband is frequently intermittent disrupting backups.
    Your internet connection speed has no effect on Time Machine/Time Capsule backups. Since that is all done locally, over your wireless network you actually do not need an internet connection at all.
    unclefossil wrote:
    Also I wondered if I could increase the memory on the setup disk by replacing the 4GB card already in the MBP with 16GB cards, if I upgraded would that affect anything I have stored already like my iTunes?
    You're asking about the computer's RAM. Increasing that will not increase the size of the internal storage available to the computer. You'd need to replace the HDD/SSD of the Mac, which, depending on what model you have may or may not be possible (with new models of Macs).

  • When I type an address in the location bar and hit Enter nothing happens. I must click the arrow button at the end of the location bar. How do I fix it so that the Enter key works?

    When I type a web address in the location bar and hit enter nothing happens. In order to go to the website I've typed in, I must click the arrow button at the end of the location bar. How do I make it so that hitting the enter key takes me to the web page.
    == This happened ==
    Every time Firefox opened
    == Since Firefox 4 Beta installed an update

    The AVG addon seems to have caused the problem for me. I had it disabled and everything worked. Then I updated to AVG 2011 and the problem occurred. It seems to have reenabled itself after the update.
    Just disabling it solved the problem.

  • Will not boot up. Apple shows, spinning wheel shows, a bar comes up on the bottom. It gets to the end of the bar and shuts down.

    Will not boot up. Apple shows, spinning wheel shows, a bar comes up on the bottom. It gets to the end of the bar and shuts down.

    Will not boot up. Apple shows, spinning wheel shows, a bar comes up on the bottom. It gets to the end of the bar and shuts down.

Maybe you are looking for