Meaningless Drivel is fun!*
The moose likes Swing / AWT / SWT and the fly likes Why JDialog display Max/Min buttons in linux and windows does not? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Why JDialog display Max/Min buttons in linux and windows does not?" Watch "Why JDialog display Max/Min buttons in linux and windows does not?" New topic
Author

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

Julio Sanchez
Greenhorn

Joined: Oct 16, 2003
Posts: 1
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

Joined: Oct 18, 2000
Posts: 4121

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.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
Don't get me started about those stupid light bulbs.
 
subject: Why JDialog display Max/Min buttons in linux and windows does not?
 
Similar Threads
removing sysmenu items
byte 0x7f, 0x80, 0x81
Displaying the close,min and max button on the left of JFrame
JFrame
JBOSS TOMCAT