aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why JDialog display Max/Min buttons in linux and windows does not?
 
Similar Threads
JBOSS TOMCAT
Displaying the close,min and max button on the left of JFrame
byte 0x7f, 0x80, 0x81
removing sysmenu items
JFrame