I use JDialog in my application. When is set its resizable method to true the icon that is set for the dialog is visible. But my requirement is that the dialog must not be resiazable. If is set this to false then the icon that is set is not visible.How do i achieve this?
the icon area also contains the menu (size/maximize etc), and is partly the reason why it's not there when not resizable.
couple of things you might try: 1) remove the titlepane - adding back your own 2) leave it resizable, but remove the mouseMotionListener (stop dragging frame taller/wider etc) would need to add back a mouseMotionListener to drag the dialog to a new location