That's my code so far:
http://pastebin.com/2qnBh23g
http://pastebin.com/qE5g7E24
I added a Timer to capture the screen every second:
[source lang="java"]time = new Timer(1000, new ActionListener() { @Override public void actionPerformed(ActionEvent e) { magnifierPanel.getScreen(); } }); time.start();[/source]
The problem here is that each time it captures the screen , it also captures the magnifier itself and it's kinda broken way to do it.
After that I tried:
[source lang="java"]time = new Timer(1000, new ActionListener() { @Override public void actionPerformed(ActionEvent e) { setVisible(false); magnifierPanel.getScreen(); setVisible(true); } }); time.start();[/source]
But in this case , the whole magnifier area (the rectangle screen in my case) is blinking, because it constantly swaps between setVisible - false and true.
I will be glad if you help me to find a solution ! Thanks






