hint 1: ff kijken bij api van JLabel op sun.
http://java.sun.com/j2se/1.4/docs/api/index.html
hint 2: allignment en center
hint 3: zorg ervoor dat je de api docs altijd onder handbereik hebt. Zonder apidoc ben je nergens.
hint 4: en deze ook...
http://search.java.sun.com
http://java.sun.com/j2se/1.4/docs/api/index.html
hint 2: allignment en center
hint 3: zorg ervoor dat je de api docs altijd onder handbereik hebt. Zonder apidoc ben je nergens.
hint 4: en deze ook...
http://search.java.sun.com
Gewoon in de API te vinden hoorJLabel
public JLabel(String text,
int horizontalAlignment)
Creates a JLabel instance with the specified text and horizontal alignment. The label is centered vertically in its display area.
Parameters:
text - The text to be displayed by the label.
horizontalAlignment - One of the following constants defined in SwingConstants: LEFT, CENTER, RIGHT, LEADING or TRAILING.
[edit]Alarmnummer, je bent wel flink bezig met tippen
Dit topic is gesloten.
![]()