Ver Mensaje Individual
  #2 (permalink)  
Antiguo 03/10/2008, 18:49
PachuG
 
Fecha de Ingreso: septiembre-2008
Ubicación: Córdoba
Mensajes: 67
Antigüedad: 16 años, 5 meses
Puntos: 0
Respuesta: Orden tabulación en java

Hola, creo que el orden de tabulacion viene dado por el orden en que agregues los componentes al contenedor. Tb parece ser que lo puedes definir el orden cada vez que haces contenedor.add(componente) pasandole como segundo parametro la posicion. De esto no estoy seguro, pero podrias probar y contarme. Seria asi
contenedor.add(componente, indice);
Esto es lo que dice la api

public Component add(Component comp,
int index)Adds the specified component to this container at the given position. This is a convenience method for addImpl(java.awt.Component, java.lang.Object, int).
Note: If a component has been added to a container that has been displayed, validate must be called on that container to display the new component. If multiple components are being added, you can improve efficiency by calling validate only once, after all the components have been added.


Parameters:
comp - the component to be added
index - the position at which to insert the component, or -1 to append the component to the end
Returns:
the component comp

http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Container.html#add(java.awt.Component, int)