• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 275
  • Last Modified:

catching user action for maximizing JFrame

in my application which consisit of JFrame , I want to know when did the user MAXIMIZE the window for further
proccesing.
0
kobijava
Asked:
kobijava
1 Solution
 
davidmorandCommented:
You have to add a window listener and do something like this:

JFrame frame;

frame.AddWindowListener(new WindowAdapter() {
    windowDeiconified(WindowEvent e) {
        // Your stuff here
    }
});
0
 
kobijavaAuthor Commented:
look,
i want to catch MAXIMIZE not deiconified
there no method for that
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now