Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JFrame maximum height

 
paul beppe
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to view only maximum height of JFrame???

help me please...
 
Kemal Sokolovic
Bartender
Posts: 825
5
Java Python Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please provide some more details? I don't really understand what you're asking.
 
paul beppe
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi!!!


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

i hope you understand me....
 
paul beppe
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i havewrite

jFrame.getMaximumSize().height

but error...

why???
 
Campbell Ritchie
Sheriff
Posts: 48441
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 825
5
Java Python Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic