The KongaDialog can generate a JPanel containing the suitable buttons that should appear in the dialog. There are 6 different button modes, with self-describing names:
OK_ONLY
OK_CANCEL
OK_CANCEL_APPLY
YES_NO
YES_NO_CANCEL
CLOSE_ONLY
onDialogClose()
which simply closes the dialog -- for each such button function. A derived class that chooses to use any of these preconfigured button modes is responsible for overriding the corresponding button method, and the onDialogClose()
method if any different behavior is wanted. Each of the preconfigured buttons can also be created individually by a subclass by calling the corresponding createXXButton() function, method. @author Torgil Zethson
|
|