Handeling listner and window events in another class

All if i have my one class that defines a JPanel how i put my listner events into another class.
so if i had
     import javax.swing.*;
     class MyFrame extends JFrame {
       public MyFrame() {
          setTitle("My Empty Frame");
          setSize(300,200); // default size is 0,0
          setLocation(10,200); // default is 0,0 (top left corner)
       public static void main(String[] args) {
         JFrame f = new MyFrame();
         f.show();
     }And then in a class WindowEvents.class i wanted to have all of the actions for any buttons
etc. How do i interface that with the main JPanel or JFrame

I would make another class, for instance if you were doing an ActionListener event, you'd have a seperate class such as,
public class ButtonHandler implements ActionListener {
private YourPanelClass view;
public ButtonHandler(YourPanelClass view) {
        this.view = view;
public void actionPerformed(ActionEvent e) {
//event handling code
view.updateGUI();
}Then in your main frame class, you'd want an updateGUI(); method which would perform the actions required and to add the event to your button you'd do something like this:
ImageIcon upIcon = new ImageIcon("navigationIcons/Up24.gif", "Up Button");
        JButton upBtn = new JButton(upIcon);
        upBtn.setToolTipText("Up");
        UpdateButtonHandler ubh = new UpdateButtonHandler(this);
        upBtn.setActionCommand("bob");
        upBtn.addActionListener(ubh);I'm actually having a simular problem to you, where as I have 1 class for my main frame, one class for my button panel with the buttons on and 1 class for my graphics cpt which im moving about via pressing the buttons. Then another class for my actionListener event, im finding it hard to get the event to work correctly because the updateGUI(); method theoretically needs to be placed inside my button panel class, but if I do that I can't seem to update the graphics cpt properly to actually move it, unless I do it in the main frame class which then means I can't have a seperate class for my button panel. Anyone got any ideas on a solution?

Similar Messages

  • Listening events in another class in a another folder

    Listening events in another class in a another folder
    Is there away of controlling a event from another location without being in the same directory/location.
    I've got a button made and a Event Action for the button made in two seperate classes. But I can't make them work without placing them both in the same location together.
    Any simple code that help communicate of long distances/folders.
    Thankyous.

    The "distance" should not be an issue, only visibility. The class that contains the button need to implement some public method of adding an ActionListener to the button. Of course the class that implements the action listener would have to have access to the instance of the button class to call that method.
    Class A {
    private JButton myButton;
    public void addActionListenerToButton (ActionListener listener){
       myButton.addActionListener (listener);
    }

  • How can I partition my external hard drive supporting mac OS in one partition and windows OS in another?

    Hello everyone, how can I partition my external hard drive supporting mac OS in one partition and windows OS in another?

    OK. Start with:
    1. Open Disk Utility in your Utilities folder.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to two (2). Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the process has completed.
    4. Click on the Erase tab in DU's main window. Select one of the two partitions, preferably the first one, change the Format type: to MSDOS then click on the Erase button.

  • Listening events on another class

    Hi, I am doing a program that uses differents jpanels, So I need to set a button enabled when an event ocurrs in another panel, how can I do that. the problem is that the panel from wich I need to listen is another class.
    please can someone help me posting some small code that shows how can I listen events on other classes. I think I am able to detect it changing a static variable on another class and having a thread that verify its state, But i dont want to do that, I want to use a listener or any other similar way.

    there's a lot of ways so it depends on the architecture of your program.
    here's a couple of ideas to play with.
    import javax.swing.*;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    public class MyFrame extends javax.swing.JFrame {
        public MyFrame(AnotherClass a) {
            JButton b1 = new JButton("OK");
            b1.addActionListener(a);
            JButton b2 = new JButton(a.getButtonAction("Cancel"));
            getContentPane().setLayout(new java.awt.FlowLayout());
            getContentPane().add(b1);
            getContentPane().add(b2);
            setLocationRelativeTo(null);
            pack();
            addWindowListener(new WindowAdapter(){
               public void windowClosing(WindowEvent we){
                   System.exit(0);
        public static void main(String[] args){
            new MyFrame(new AnotherClass()).setVisible(true);
    import javax.swing.Action;
    import javax.swing.AbstractAction;
    import java.awt.event.*;
    public class AnotherClass implements ActionListener {   
        private Action a;//cancel action
        public AnotherClass() {}
        private void setEnabled(boolean b){
            a.setEnabled(b);
        //cancel action
        public Action getButtonAction(String name){
            a =  new AbstractAction(name){
               public void actionPerformed(ActionEvent ae){
                   System.out.println("Cancel");
            return a;
        public void actionPerformed(ActionEvent e) {
            //ok button action
            System.out.println("okay");
    }

  • In java,how to trigger an event in one class from an event in another class

    i need sloution to thisbecause, when the swing components are colloborating each other,i need to control the components with respect to others events.

    eventListeners are the way to go.
    -Js

  • Window.event does not working in Firefox 4.0 and also window.event.ctrlKey ?

    hi,
    I'm using Microsoft virtual earth map 6.2 (bing Map) in my application.On map showing number of images.On Each image there is onClick event that select image if user press left mouse button while holding Ctrl key .For this I wrote java-script function where I'm using Window.event.button (To check mouse button) and window.event. ctrlKey(To check control key) But these both are not working in Firefox 4.0 ,the same is working in Firefox 3.6X version perfectly.
    Thanks

    The same problem is in Firefox 5.0 version too

  • How to access an attribute(this is referencing to another class) in a class

    Dear Gurus,
    I have to read an attribute of a class and that attributes type another class.
    I have intantiated the class and my question is how to read the attribute. I know I can not dirrectly read the attribute since this is another class. I think I have to first reference the attribute right? Please advise me.
    My code looks like below:
    data: lo_fpm                                 type ref to if_fpm.
    data: lo_msg_mgr                        type ref to if_fpm_message_manager.
    data: lo_component_manager    type ref to cl_fpm_component_manager.
    lo_fpm = cl_fpm_factory=>get_instance( ).    " cl_fpm_factory is a class which has a static method get_instance
    lo_msg_mgr = lo_fpm->mo_message_manager.
    lo_component_manager = lo_fpm->mo_component_manager.
    The above statement is giving syntax error. I do not know why.
    The basic difference b/n the two methods is if_fpm~mo_message_manager    type ref to if_fpm_message_manager    and
    mo_component_manager     type ref to cl_fpm_component_manager.
    Any help would be appreciated.
    Thanks,
    GSM

    Hello
    I cannot test the following coding because I do not get the singleton instance yet it should work:
    *& Report  ZUS_SDN_CL_FPM_FACTORY
    *& Thread: How to access an attribute(this is referencing to another class) in a class
    *& <a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1398429"></a>
    REPORT  zus_sdn_cl_fpm_factory.
    DATA: go_fpm TYPE REF TO cl_fpm.  " class implements if_fpm.
    DATA: go_msg_mgr TYPE REF TO if_fpm_message_manager.
    DATA: go_component_manager TYPE REF TO cl_fpm_component_manager.
    START-OF-SELECTION.
      BREAK-POINT.
      go_fpm ?= cl_fpm_factory=>get_instance( ). " cl_fpm_factory is a class which has a static method get_instance
      CHECK ( go_fpm IS BOUND ).
      go_msg_mgr           = go_fpm->mo_message_manager.
      go_component_manager = go_fpm->mo_component_manager.
    END-OF-SELECTION.
    Regards
      Uwe

  • Time zone problem between mac and windows

    i'm running os x snow leopard on one partition and windows 7 on another on a 2008 mbp. whenever i log into windows and then get back onto mac, my time is completely off. i can temporarily fix it by removing the local time file, which resets it, but every time i log into windows and back i get the same problem. i've tried turning off the automatic time zone, tried turning off auto everything and just setting the time myself and it always goes back to being messed up after a trip to the windows partition.
    anybody got a fix?

    For windows users can you create a connection key in Windows machine and send the same.

  • Fire event from one class to another.

    I have a Login JFrame class that allows users to enter username and password. I then have another JFrame class which will monitor when someone logs in. I am trying to get the username and password to appear on the monitor login frame text area when the user presses enter on the login frame.
    I can get it ot work by passing the Monitor class into the Login classes constructor but I want to be able to open the classes separately.When I try to open separatley at present I get java.lang.NullPointerException
         at project.LoginGUI.actionPerformed(LoginGUI.java:70) which is referring to the following code:      
    if(listen.equals("OK")){
         GymMonitor.username.setText(username.getText());     
    Both classes are in the same package. What I want to know is how to fire an event from one class to another? when the class you are firing to is constructed separately.
    I hope this question is not too verbose.
    Thanks

    Generally for something like this you would use a listener.
    Your login window is its own entity--it has a user interface, and it gets some information which someone else could ask it for. It could even generate its own events, such as when the user presses "OK". You would first define an interface for anyone who wants to know when someone logs in:
    public interface ILoginListener extends java.util.EventListener
      public void login(LoginEvent event);
    }You would then define the LoginEvent class to contain information like what the user entered for username and password. You could give your login dialog a couple of methods:
      private Vector myListeners = new Vector();
      public void addLoginListener(ILoginListener listener) {
        myListeners.add(listener);
      public void removeLoginListener(ILoginListener listener) {
        myListeners.remove(listener);
      protected void fireLogin(LoginEvent event) {
        for (Iterator it = myListeners.iterator(); it.hasNext(); ) {
          ILoginListener listener = (ILoginListener)it.next();
          listener.login(event);
      }You'd have your login dialog call fireLogin every time the user logged in.
    Then, you could implement ILoginListener in your monitor window:
      public void login(LoginEvent event) {
        // now do something with the event you just got.
      }All the code I put in here is really generic stuff. You'll write this kind of stuff hundreds of times probably during your career. I haven't tested it though.
    Hope this helps. :)

  • Essential event viewer bugs with "Forwarded Events" log in Windows Server 2008 R2 and Windows 7

    To my general experience, Windows event viewer is one of the most problematic, faulty management tools in the case of extensive use of its more sophisticated capabilities. The sole description as well as reproduction of some entangled failures would require
    remarkable effort.
    With the "Forwarded Events" log however, the situation becomes particularly worse in that even simple functionality fails and workarounds are difficult to find. That’s what I’ll describe here in order to share my experience with interested users.
    For precision: I’ve extensively used event viewer on a German Windows Server 2008 R2 SP1 (Windows SBS 2011 Standard SP1). The bugs I found on that system, I could reproduce on a German Windows 7 Professional 64-Bit SP1, too.
    Problem 1: Failure of even simple event filtering
    To reproduce this problem, execute these steps on a test machine with any of the two OS mentioned above:
    (i) To prepare log contents, do either of the following:
    (a) populate some events to your local "Forwarded Events" log (most simply by subscribing events from other logs of the same machine; stop subscription if you have collected some events)
    Or
    (b) copy a non-empty log file "ForwardedEvents.evtx" from another machine (with any of the two OS mentioned above) to your test machine and open the file in event viewer.
    (ii) Navigate to your "Forwarded Events" test log and open the filtering dialog. In the "Includes/Excludes Event IDs" field, type: 1-9000. Click OK.
    (iii) Look at the results pane: Surprise, 0 Events! Do you really have no event IDs between 1 and 9000 in your test log?
    (iv) Another example, if you have forwarded security events in your test log: Clear filter, if any previous filter is in place. Open the filtering dialog. In "Keywords" sub-dialog, choose "Audit Success". Click OK.
    (v) Look at the results pane: Surprise, 0 Events! Do you really have no successful security monitoring events in your test log?
    I’ll finish here. If you have a rich variety of events in your test log available, let your imagination run wild to test around. Finally include some simple manually created or modified XPath filters on the XML tab of the filtering dialog. I promise, you’ll
    find a lot of additional strange results.
    Problem 2: Cannot save manually selected events to .evtx file
    Navigate to your "Forwarded Events" test log. In the results pane, select one or more events by highlighting them by mouse clicks. In context menu, choose "Save selected events". In the "save as" dialog, choose file type *.evtx
    and save your file. Open the newly created file in event viewer. Result: Surprise, no events inside the new file!
    Have more fun with forwarded events
    Helmut

    Did you mean that right click Forwarded Event and select "Filter Current Log..."? Since I can filter correct event vai the "Filter Current Log..." in my Lab environment.
    Hi Justin,
    yes, I mean "Filter Current Log ... " (in my German systems: "Aktuelles Protokoll filtern ... ").
    What do you mean with "my Lab environment" exactly?
    In the meantime, I performed additional tests. I copied the "ForwardedEvents.evtx" test file from Server 2008 R2 resp. Windows 7 to
    (i) German Windows 8 Pro 64-Bit RTM
    (ii) German Windows 8.1 Pro 64-Bit, up-to-date
    in order to view and filter the file there.
    Results: Same event viewer problem on Windows 8 RTM, but correct behavior on Windows 8.1!
    Best regards, Helmut

  • Event handling from class to another

    i get toolbarDemo.java which make event handling to JTextArea in the same class
    http://java.sun.com/docs/books/tutorial/uiswing/components/example-1dot4/index.html#ToolBarDemo
    but i have another class and i make object of toolBar class and i move toolBar icons only how can i move the event handling as open ,save,copy,paste to my another class
    i want to ignore actionPerformed of toolBar class and listen to my another's class actionPerformed
    thanks

    Rather than trying to use the ToolBarDemo class as-is you can use/modify the methods in it for your own class, like this:
    import java.awt.*;
    import java.awt.event.*;
    import java.net.URL;
    import javax.swing.*;
    import javax.swing.text.TextAction;
    public class ToolBarIconTest implements ActionListener
        static final private String OPEN  = "open";
        static final private String SAVE  = "save";
        static final private String COPY  = "copy";
        static final private String PASTE = "paste";
        public void actionPerformed(ActionEvent e)
            String cmd = e.getActionCommand();
            if (OPEN.equals(cmd))
                System.out.println("show a JFileChooser open dialog");
            if (SAVE.equals(cmd))
                System.out.println("show a JFileChooser save dialog");
        private JToolBar getToolBar()
            JToolBar toolBar = new JToolBar();
            addButtons(toolBar);
            return toolBar;
        protected void addButtons(JToolBar toolBar) {
            JButton button = null;
            //first button
            button = makeGeneralButton("Open24", OPEN,
                                       "To open a document",
                                       "Open", this);
            toolBar.add(button);
            //second button
            button = makeGeneralButton("Save24", SAVE,
                                       "To save a document",
                                       "Save", this);
            toolBar.add(button);
            //third button
            button = makeGeneralButton("Copy24", COPY,
                                       "Copy from focused text component",
                                       "Copy", copy);
            toolBar.add(button);
            //fourth button
            button = makeGeneralButton("Paste24", PASTE,
                                       "Paste to the focused text component",
                                       "Paste", paste);
            toolBar.add(button);
        protected JButton makeGeneralButton(String imageName,
                                            String actionCommand,
                                            String toolTipText,
                                            String altText,
                                            ActionListener l) {
            //Look for the image.
            String imgLocation = "toolbarButtonGraphics/general/"
                                 + imageName
                                 + ".gif";
            URL imageURL = ToolBarIconTest.class.getResource(imgLocation);
            //Create and initialize the button.
            JButton button = new JButton();
            button.setActionCommand(actionCommand);
            button.setToolTipText(toolTipText);
            button.addActionListener(l);
            if (imageURL != null) {                      //image found
                button.setIcon(new ImageIcon(imageURL, altText));
            } else {                                     //no image found
                button.setText(altText);
                System.err.println("Resource not found: "
                                   + imgLocation);
            return button;
        private Action copy = new TextAction(COPY)
            public void actionPerformed(ActionEvent e)
                JTextComponent tc = getFocusedComponent();
                int start = tc.getSelectionStart();
                int end = tc.getSelectionEnd();
                if(start == end)
                    tc.selectAll();
                tc.copy();
        private Action paste = new TextAction(PASTE)
            public void actionPerformed(ActionEvent e)
                getFocusedComponent().paste();
        private JPanel getTextFields()
            JPanel panel = new JPanel(new BorderLayout());
            panel.add(new JTextField(12), "North");
            panel.add(new JTextField(12), "South");
            return panel;
        public static void main(String[] args)
            ToolBarIconTest test = new ToolBarIconTest();
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(test.getToolBar(), "North");
            f.getContentPane().add(test.getTextFields());
            f.setSize(360,240);
            f.setLocation(200,200);
            f.setVisible(true);
    }Use the -cp option as shown in the ToolBarDemo class comments
    C:\jexp>java -cp .;path_to_jar_file/jlfgr-1_0.jar ToolBarIconTest

  • Is there a way to click on one image and activate the animation in another class?

    I'm using the ibooks.js library. So it'd need to .activate another class if using the ibooks-toggleable function.
    Thanks!

    Harold,
    I can't say how this compares to Word, since I don't use it, but you can open as many document at a time as you wish in Pages. Each will have its own window. Having too many open will slow your system and reduce Macbook battery life.
    Jerry

  • Creating another class window within one class

    Ok I have a main window class, at some point if you click some button I want it to make the first window invisible and have this other, second class, appear, and further on, for both to talk to eachother. These are applets, and I have tried having one applet launch using applet.init() and hoping it would launch but it doesn't work that easy.

    so it has to create a new window within the first class? I cannot use two classes? here:
       import java.awt.*;
       import java.awt.event.*;
       import javax.swing.*;
       import javax.swing.JOptionPane;
        public class Darkness extends JApplet implements ItemListener, ActionListener
              private int intBold = Font.BOLD;
              private int intItalic = Font.PLAIN;
          private Color currentColor = Color.blue;
              private Color dateColor = Color.red;
              private Color regColor = Color.black;
              private JComboBox Years;
          private JRadioButton Sword, Bow, Flame, Ice;
          private JButton Walk[] = new JButton[6];
          private int x, y;
            private ButtonGroup Months;
              private int MO;
          private String[] buttonnames = {"Walk", "Town"};
              private String[] section = {"Forest","Mountains"};
              private String SECTION;
    public void init()
                   SECTION = section[0];
                   Image image = getImage(getCodeBase(), "Background.jpg");
                   Container content = new Work(new ImageIcon(image).getImage());
                   setContentPane(content);
                   Years = new JComboBox(section);
                   Years.setMaximumRowCount(3);
                   Years.setSize(80,30);
                   Years.setLocation(260,450);
             Container c = getContentPane();
             c.setLayout(null);
                   c.add(Years);
             Sword = new JRadioButton("Sword");
             Bow = new JRadioButton("Bow");
             Flame = new JRadioButton("Flame");
             Ice = new JRadioButton("Ice");
             Sword.setLocation(50, 400);
             Bow.setLocation(175, 400);
             Flame.setLocation(300, 400);
             Ice.setLocation(425, 400);
                   Sword.setBackground(currentColor);
                   Bow.setBackground(currentColor);
                   Flame.setBackground(currentColor);
                   Ice.setBackground(currentColor);
             Sword.setSize(100,30);
             Flame.setSize(100,30);
             Ice.setSize(100,30);
             Bow.setSize(100,30);
             Sword.addItemListener(this);
             Flame.addItemListener(this);
             Ice.addItemListener(this);
             Bow.addItemListener(this);
             c.add(Sword);
             c.add(Ice);
             c.add(Flame);
             c.add(Bow);
             Months = new ButtonGroup();
             Months.add(Sword);
             Months.add(Ice);
             Months.add(Flame);
             Months.add(Bow);
    int b = 200; //for button placement
         for(int i = 0; i < 2; i++)
                        Walk[i] = new JButton(buttonnames);
                        Walk[i].setSize(80, 40);          
                        Walk[i].addActionListener(this);
                        Walk[i].setVisible(true);
                        Walk[i].setLocation(b, 500);
                        c.add(Walk[i]);
                        b = b + 100;
    public void itemStateChanged(ItemEvent e)
    Container d = getContentPane();
    d.setLayout(null);
    int y = 200;
              if(e.getSource() == Years)
         SECTION = section[Years.getSelectedIndex()];
         repaint();
    }//end
    public void paint(Graphics g)
    super.paint(g);
    g.setColor(Color.red);
    g.drawRoundRect(0,0,600,600,10,10);
    g.setColor(Color.red);
                   g.setFont(new Font("Courier", intBold + intItalic, 30));
    g.drawString("Darkness",250,50);
    g.setFont(new Font("Courier", intBold + intItalic, 12));
    g.drawString("Monster", 150,175);
    g.drawString("Monster Health", 250,175);
                   g.drawString("Pick an area", 260,445);
    public void actionPerformed(ActionEvent e)
    int Randomizer;
    java.util.Random r = new java.util.Random();
    Randomizer = r.nextInt(10)+1;
         if(e.getSource() == Walk[0] & SECTION == "Forest")
              JOptionPane.showMessageDialog(null, "" + Randomizer, "Damage!", JOptionPane.INFORMATION_MESSAGE);     
         if(e.getSource() == Walk[1])
    //**********************HERE IS WHERE I WANT TO CALL THE OTHER APPLET*************
    //**********************HERE IS WHERE I WANT TO CALL THE OTHER APPLET*************
    //**********************HERE IS WHERE I WANT TO CALL THE OTHER APPLET*************
    //**********************HERE IS WHERE I WANT TO CALL THE OTHER APPLET*************
    //**********************HERE IS WHERE I WANT TO CALL THE OTHER APPLET*************
    //**********************HERE IS WHERE I WANT TO CALL THE OTHER APPLET*************
    //**********************HERE IS WHERE I WANT TO CALL THE OTHER APPLET*************
              JOptionPane.showMessageDialog(null, "Returning to Town", "Info", JOptionPane.INFORMATION_MESSAGE);
    //THE FIRST CLASS SHOULD CALL THIS CLASS::::Completely different file not same .java
    //********************************************************************************8
    //********************************************************************************8
    //********************************************************************************8
    //********************************************************************************8
    //********************************************************************************8
    //********************************************************************************8
    //********************************************************************************8
    //********************************************************************************8
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.JOptionPane;
    public class Town extends JApplet implements ActionListener
                   private int intBold = Font.BOLD;
              private int intItalic = Font.PLAIN;
    private JButton Buy[] = new JButton[6];
    private String[] ButtonNames = {"Walk", "Town"};
    public void init()
              Image image = getImage(getCodeBase(), "Town.jpg");
              Container content = new Work(new ImageIcon(image).getImage());
              setContentPane(content);
    Container c = getContentPane();
    c.setLayout(null);
    Buy[0] = new JButton(ButtonNames[0]);
    Buy[0].setSize(80, 40);          
                        Buy[0].addActionListener(this);
                        Buy[0].setLocation(400, 300);
                        c.add(Buy[0]);
         public void paint(Graphics g)
    super.paint(g);
    g.setColor(Color.yellow);
    g.drawRoundRect(0,0,600,600,10,10);
    g.setColor(Color.red);
    g.setFont(new Font("Courier", intBold + intItalic, 30));
    g.drawString("Town",110,150);
    g.setFont(new Font("Courier", intBold + intItalic, 12));
    g.drawString("Sunday", 25,175);
    g.drawString("Monday", 100,175);
    g.drawString("Tuesday", 175,175);
    g.drawString("Wednesday", 250,175);
    g.drawString("Thursday", 325,175);
    g.drawString("Friday", 400,175);
    g.drawString("Saturday", 475,175);
                   g.drawString("", 260,445);
    public void actionPerformed(ActionEvent e)
    if(e.getSource() == Buy[0])
    JOptionPane.showMessageDialog(null, "" , "Info", JOptionPane.INFORMATION_MESSAGE);     
              public static int Money()
    int t = 3;
    return t;

  • I wonder to know what is the enterprise solution for windows and application event log management and analyzer

    Hi
    I wonder to know what is the enterprise solution for windows and application event log management and analyzer.
    I have recently research and find two application that seems to be profession ,1-manageengine eventlog analyzer, 2- Solarwinds LEM(Solarwind Log & Event Manager).
    I Want to know the point of view of Microsoft expert and give me their experience and solutions.
    thanks in advance.

    Consider MS System Center 2012.
    Rgds

  • How can you take a photo from one event and put it in another, without dragging to desktop and dragging back into iPhoto and moving it to the event folder I want it in.

    As the title says I need help on how to take a photo from one event and put it in another, without dragging to desktop and dragging back into iPhoto and moving it to the event folder I want it in. Right now when I want to move a picture from one event to another I drag it to my desktop then delete it from iPhoto then I drag it back into iPhoto and put where I want it.An example would be taking a photo from the Christmas event and add it to a specific person event.  Can I do that within the events section without all the dragging. Also is there anyway I can remove duplicates from iPhoto without going through each and every file. Any help would be greatly appreciated.

    Apple doesn't make it easy to do what you want.  However, here's how I do it. 
    Select the photo you want to move and create a new Event for it via the Event ➙ Create Event menu option.
    In the Event mode select the new Event with the one picture and drag it onto the Event you want to move the photo to.

Maybe you are looking for

  • How can I delete Skype SMS messages from my I-Pad?

    How can I delete Skype SMS messages from my I-Pad?

  • I want to upgrade my OS from 10.6.8

    I have a macbook 4,1 late 2008 running osx 10.6.8. I want to upgrade my OS. Is it the only latest os i can use or can i upgrade to any other latest os than this??

  • How do I transfer photos from my external HD to my new MacBook Pro?

    I can't find the photos in my HD but I used Time Machine so they have to be there somewhere... All I can find is under Users --> Pictures --> iPhoto Library, which I can't upload/import into my new iPhoto. (I used to use a regular MacBook and now I'm

  • Translation of Tab Title on Details iView

    Hi, I am using the MDM Business Package for EP "Details iView". There you add tabs to a table and place fields from the repository on these tabs. Fields names are automatically displayed in the user's language as they are loaded from the repository.

  • Finding songs NOT downloaded? Missing info

    Have a brand new 80 gb video iPod. After downloading ALL my music from iTunes, I notice that the iPod has about a dozen FEWER songs in the library than my iTunes collection. Is there some way to locate or identify which tunes/files were NOT downloade