How to check current window size in java swing?

For instance, the size of the window changed (user resized it), how to get current window size?

Answers


Rectangle r = frame.getBounds();
h = r.height;
w = r.width;

Need Your Help

Shoutcast stream buffering with Adobe AIR without using Flash/Flex player?

javascript streaming air shoutcast

My application is written in Adobe Air & JavaScript and doesn't use Flash/Flex.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.