Advanced   Java   Services JButton Back Next Up Home


Grundlegende Eigenschaften
Konstruktoren
JButton() Creates a JButton instance with no image and with an empty string for the title.
JButton(Icon image)Creates a JButton instance with the specified image.
JButton(String text)Creates a JButton instance with the specified text.
JButton(String text, Icon icon) Creates a JButton instance with the specified text and icon.
JButton(Action a) Creates a button where properties are taken from the Action supplied.

JButton erbt alle wesentlichen Methoden von AbstractButton.


Einige set-Methoden und deren Wirkung

Das folgende Applet zeigt das Verhalten eines JButton unter verschiedenen Voreinstellung für eine Reihe von Eigenschaften. Schaltren Sie mit den Checkboxen die Eigenschaften ein und aus und beobachten das Erscheinungsbild des Buttons.

Valid XHTML 1.0 Strict Copyright Dipl.Math. H.M.Straub top Back Next Up Home