I have a JDialogBox which is displayed for two different actions. When i double click on a table cell this dialog box is diplayed & also when i right click on the tabl cell this dialog gets displayed.
When it gets displayed for a double click all the components of that dialog are to be made visible. But when it gets displayed for a right click, one of the component (a panel on that dialog) should not be displayed & the space occupied by that component should be used evenly by other components.