Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  *  Copyright (c) 2011 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK), Gatersleben, Germany.
  *  All rights reserved. This program and the accompanying materials
  *  are made available under the terms of the GNU Lesser Public License v2.1
  *  which accompanies this distribution, and is available at
  *  http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
  *
  *  Contributors:
  *      Leibniz Institute of Plant Genetics and Crop Plant Research (IPK), Gatersleben, Germany - RMI Client, FileChooser and WebDAV
 */
package de.ipk_gatersleben.bit.bi.edal.publication.listener;
java.awt.event.KeyListener to switch from one javax.swing.JPanel to the next javax.swing.JPanel by pressing java.awt.event.KeyEvent.VK_TAB

Author(s):
arendd
public class TabKeyListener implements KeyListener {
	public TabKeyListener(JTextComponent nextPanel) {
		this. = nextPanel;
	}
	public void keyTyped(KeyEvent e) {
		// do nothing
	}
	public void keyPressed(KeyEvent e) {
				&& e.getKeyCode() == .) {
		}
	}
	public void keyReleased(KeyEvent e) {
		// do nothing
	}
New to GrepCode? Check out our FAQ X