1 / 7

Diseño Avanzado de Interfaz Grafica de Usuario con SWING JCheckBox

Diseño Avanzado de Interfaz Grafica de Usuario con SWING JCheckBox. DEFINICIÓN.

conner
Download Presentation

Diseño Avanzado de Interfaz Grafica de Usuario con SWING JCheckBox

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Diseño Avanzado de Interfaz Grafica de Usuario con SWING JCheckBox

  2. DEFINICIÓN Se trata de controles que permiten su activación y desactivación a fin de elegir una serie de opciones independientes. En Swing es la clase JCheckBox la encargada de representarlas. Esta clase deriva de JToggleButton, que, a su vez, deriva de AbstractButton

  3. ¿DONDE SE ENCUENTRA? import javax.swing.* import javax.swing.JCheckBox; javax.swing.JCheckBox objeto = new javax.swing.JCheckBox();

  4. CONSTRUCTORES

  5. CREANDO OBJETOS JCHECKBOX JCheckBox check1 = new JCheckBox(); JCheckBox check2 = new JCheckBox(); ImageIconimagenUno = new ImageIcon("imagenes/mad.gif"); ImageIconimagenDos = new ImageIcon("imagenes/whistling.gif"); JCheckBox check1 = new JCheckBox(imagenUno); JCheckBox check2 = new JCheckBox(imagenDos); JCheckBox check1 = new JCheckBox("Perros"); JCheckBox check2 = new JCheckBox("Pajaros"); JCheckBox check1 = new JCheckBox("Perros", true); JCheckBox check2 = new JCheckBox("Pajaros", false);

  6. MÉTODOS DEL JCHECKBOX

More Related