
















Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity
Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium
Esta página no es visible en la vista previa
¡No te pierdas las partes importantes!

















1
2
3
JSplitPane, (^) JTabbedPane, JToolBar
(^) y otros
más especializados
4
(^) unaFrame .getContetPane();
unaFrame .setContentPane( unPanel );
unaFrame .setJMenuBar( unMenuBar );
5
setTitle() pack() setVisible()setSize()
getContentPane() (^) getContentPane() (^) getContentPane()
6
7
8
13
14
15
16
17
(^) super(String)
18
19
20
25
26
27
28
29
30
HORIZONTAL_SCROLLBAR_AS_NEEDED
VERTICAL_SCROLLBAR_ALWAYS
HORIZONTAL_SCROLLBAR_ALWAYS
VERTICAL_SCROLLBAR_NEVER
HORIZONTAL_SCROLLBAR_NEVER
31
(^) {
}}frame.setVisible(true); frame.pack(); frame.getContentPane().add(scrollPane); ScrollPane scrollPane = new ScrollPane(label); JLabel label = new JLabel(ii);ImageIcon ii = new ImageIcon("carapin.gif");JFrame frame = new JFrame("Un ejemplo");
32
VERTICAL_SPLIT
37
38
... setBackground()setVisible()setEnable()setBorder() setToolTips()
39
40
41
42
(^) setBorder(Border)
43
44
RIGHT CENTER
49
(^) // offset y len
char [] getPassword()^ –^ con un método de instancia JPasswordField^ –^ Tiene una subclase que enmascara el eco (* u otro símbolo)...boolean isEditable()void setEditable(boolean)
50
(^) [int,int])
(^) JTextField
51
JList(Object (^) [])
JList(Vector)
JList(ListModel)
(^) si (^) no hay
void setListData(Vector)void setListData(Object)boolean isSelectionEmpty([])boolean isSelectedIndex(int)Object [] getSelectedValues()Object getSelectedValue()int [] getSelectedIndices()
52
53
JComboBox(Object [])
JComboBox(Vector) (^) JComboBox(ListModel)
54
55
56
61
JMenuBar
62
(^) JMenuBar (^) una entrada
63
64
(^) java.awt.event
add(new JMenuItem(“Entrada”,KeyEvent.VK_E));
65
66
67
68
(^) indica la interface que va a implementar
73
74
75
(^) ItemEvent.SELECTED (^) o
ItemEvent.DESELECTED
76
77
78
79
80