Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why JDialog display Max/Min buttons in linux and windows does not?

 
Julio Sanchez
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why JDialog display Max/Min buttons in linux and windows does not?
I remember JDialog does not have MAx/Min buttons but why linux display that buttons? Is it a Java Bug? I'm running jvm 1.4.1
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's defined in the look and feel. If I set Windows L&F and show a JDialog I get a dialog with only a close button. If I set Metal L&F I get a dialog with no buttons at all. If I set Motif L&F... I get a Windows dialog with motif widgets inside of it. (Even if I call JDialog.setDefaultLookAndFeelDecorated( true )) Unfortunately my Linix box is at home, so I can't test it out for sure, but I assume I would get the same results as you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic