public class JButton extends AbstractButton
implements Accessible java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.AbstractButton
javax.swing.JButton
Costruttori
Argomenti | Commento |
---|
| vuoto | Action | Azione | Icon | Icona | String | Testo | String, Icon | Testo e icona |
Eredita tanti metodi da AbstractButton
public class JLabel extends JComponent
implements SwingConstants,
Accessible java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
java.awt.JLabel
Costruttori
Argomenti | Commento |
---|
| Vuota |
Icon | Icona |
Icon, int | Icona, allineamento |
String | Testo |
String, int | Testo, allineamento |
String, Icon, int | Testo, icona, allineamento |
Metodi
Nome | Argomenti | Tipo | Commento |
---|
getHorizontalAlignment
getVerticalAlignment getHorizontalTextPosition
getVerticalTextPosition |
| int | | getToolTipText |
String | getText | setHorizontalAlignment
setVerticalAlignment setHorizontalTextPosition
setVerticalTextPosition | int |
|
|
setToolTipText
| String | setText |
public interface SwingConstants
Campi (static)
Nome | Tipo | Commento |
---|
LEFT
CENTER
RIGHT
LEADING
TRAILING
| int | Orizzontale |
TOP
CENTER
BOTTOM
| Verticale |
NEXT
PREVIOUS
| |
NORTH
NORT_EAST
NORTH_WEST
EAST
SOUTH
SOUTH_EAST
SOUT_WEST
WEST
| |
|