Reputation: 1100
I have a JFrame of which extended state option is set to MAXIMIZE_BOTH
When i want to get the width of the JFrame it returns 0.
so WHY?
Upvotes: 0
Views: 472
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
pack()
is called
for already visible container on the screen
Upvotes: 2