org.jSyncManager.Client.GUIParts

Class DetailedErrorMessageDialog


public class DetailedErrorMessageDialog
extends JDialog

A class to provide an error dialog that can contain a detailed error message.

Constructor Summary

DetailedErrorMessageDialog()
Constructs a new instance of the DetailedErrorMessageDialog.
DetailedErrorMessageDialog(JDialog owner, String title)
Constructs a new instance of the DetailedErrorMessageDialog with the specified owner and title.

Method Summary

static void
main(args[] )
A main entry point for testing this dialog class.
void
setDescriptionText(String description)
Sets the text describing the description of the error.
void
setDetailsText(String message)
Sets the text describing the details of the error.
void
setDetailsText(Throwable t)
Sets the text describing the details of the error.
void
setErrorText(String error)
Sets the text describing the error message.
void
setErrorText(Throwable error)
Sets the text describing the error message.
void
show()
Shows this dialog.

Constructor Details

DetailedErrorMessageDialog

public DetailedErrorMessageDialog()
Constructs a new instance of the DetailedErrorMessageDialog.

DetailedErrorMessageDialog

public DetailedErrorMessageDialog(JDialog owner,
                                  String title)
Constructs a new instance of the DetailedErrorMessageDialog with the specified owner and title.
Parameters:
owner - the JDialog that owns this dialog.
title - the title to use on this dialog.

Method Details

main

public static final void main(args[] )
A main entry point for testing this dialog class. If you're not sure what will go where when you create this dialog class, run this method for a demo.
Parameters:

setDescriptionText

public void setDescriptionText(String description)
Sets the text describing the description of the error.
Parameters:
description - text describing the description of the error.

setDetailsText

public void setDetailsText(String message)
Sets the text describing the details of the error.
Parameters:
message - text describing the details of the error.

setDetailsText

public void setDetailsText(Throwable t)
Sets the text describing the details of the error.
Parameters:
t - a Throwable object containing the details of the error.

setErrorText

public void setErrorText(String error)
Sets the text describing the error message.
Parameters:
error - text describing the error message.

setErrorText

public void setErrorText(Throwable error)
Sets the text describing the error message.
Parameters:
error - a Throwable object containing the error message.

show

public void show()
Shows this dialog.