• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Icon for the title frame of the JDialog

 
Archana Venu Aradhyula
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

Thanks
 
Maneesh Godbole
Saloon Keeper
Posts: 11096
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you creating the JDialog?
JOptionPane.showXXXDialog has several overloaded methods which provide you a JDialog with an option of your choice.
 
Kuladip Yadav
Ranch Hand
Posts: 162
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know how do you create JDialog.
But you can try somthing like this :



Thanks

Kuldeep Yadav
[ December 10, 2008: Message edited by: Kuldeep Yadav ]
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic