/*
* Copyright 2001-2008 Geert Bevin <gbevin[remove] at uwyn dot com>
* Licensed under the Apache License, Version 2.0 (the "License")
* $Id: ActionFocusNextComponent.java 3918 2008-04-14 17:35:35Z gbevin $
*/
package com.uwyn.rife.swing.actions;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.FocusManager;
import javax.swing.JComponent;
public class ActionFocusNextComponent extends AbstractAction
{
private static final long serialVersionUID = 2535887415382858089L;
public ActionFocusNextComponent()
{
super();
}
public void actionPerformed(ActionEvent event)
{
if (null != event)
{
JComponent source_component = (JComponent)event.getSource();
if (null != source_component)
{
FocusManager.getCurrentManager().focusNextComponent(source_component);
}
}
}
}