permaculture playing cards*
The moose likes Swing / AWT / SWT and the fly likes JFrame maximum height Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JFrame maximum height" Watch "JFrame maximum height" New topic
Author

JFrame maximum height

paul beppe
Ranch Hand

Joined: Aug 09, 2012
Posts: 86
how to view only maximum height of JFrame???

help me please...
Kemal Sokolovic
Bartender

Joined: Jun 19, 2010
Posts: 825
    
    5

Can you please provide some more details? I don't really understand what you're asking.


The quieter you are, the more you are able to hear.
paul beppe
Ranch Hand

Joined: Aug 09, 2012
Posts: 86
hi!!!


i want resize jframe only height but in maximum height...

i hope you understand me....
paul beppe
Ranch Hand

Joined: Aug 09, 2012
Posts: 86
i havewrite

jFrame.getMaximumSize().height

but error...

why???
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38003
    
  22
And what is the error? I can see at least one potential error in that code.
Please explain what you mean about getting the maximum height.
Kemal Sokolovic
Bartender

Joined: Jun 19, 2010
Posts: 825
    
    5

Well, this must be one of those moments where we're all supposed to read OP's mind...

If you want to set your frame to be the size of your screen, you should take a look at java.awt.Toolkit class.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JFrame maximum height
 
Similar Threads
run()
JFrame title bar height
disable only vertical resize of JFrame
WA #1.....word association
Windows height