atypical
atypical

Reputation: 1100

How to get extendedState width of JFrame

so WHY?

Upvotes: 0

Views: 472

Answers (1)

mKorbel
mKorbel

Reputation: 109823

  • I have a JFrame of which extended state option is set to MAXIMIZE_BOTH

JFrame.getExtendedState() returns proper state

  • When i want to get the width of the JFrame it returns 0.

any coordinated are accesible after

  1. pack() is called

  2. for already visible container on the screen

Upvotes: 2

Related Questions