When building the String to be displayed in the dialog, the if statements can be used to control what text is added to the String that is being built:
String theText = "First part";
if(wantThisP)...
Type: Posts; User: Norm
When building the String to be displayed in the dialog, the if statements can be used to control what text is added to the String that is being built:
String theText = "First part";
if(wantThisP)...
Are you asking how to write some lines of code in a method in a class that extents the JDialog class?
Otherwise can you explain and post some code showing what you are trying to do.