try {
b = new JDialog();
} catch (HeadlessException e) {
exceptions = true;
} if (!exceptions) thrownew RuntimeException("HeadlessException did not occur when expected");
exceptions = false; try {
b = new JDialog(new Frame("Frame title"));
} catch (HeadlessException e) {
exceptions = true;
} if (!exceptions) thrownew RuntimeException("HeadlessException did not occur when expected");
exceptions = false; try {
b = new JDialog(new Frame("Frame title"), true);
} catch (HeadlessException e) {
exceptions = true;
} if (!exceptions) thrownew RuntimeException("HeadlessException did not occur when expected");
exceptions = false; try {
b = new JDialog(new Frame("Frame title"), false);
} catch (HeadlessException e) {
exceptions = true;
} if (!exceptions) thrownew RuntimeException("HeadlessException did not occur when expected");
exceptions = false; try {
b = new JDialog(new Frame("Frame title"), "Dialog title");
} catch (HeadlessException e) {
exceptions = true;
} if (!exceptions) thrownew RuntimeException("HeadlessException did not occur when expected");
exceptions = false; try {
b = new JDialog(new Frame("Frame title"), "Dialog title", true);
} catch (HeadlessException e) {
exceptions = true;
} if (!exceptions) thrownew RuntimeException("HeadlessException did not occur when expected");
exceptions = false; try {
b = new JDialog(new Frame("Frame title"), "Dialog title", false);
} catch (HeadlessException e) {
exceptions = true;
} if (!exceptions) thrownew RuntimeException("HeadlessException did not occur when expected");
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.