Calling just the desktop manager method only does part of the job and
leaves the state inconsistent.
This code should fix your problem: pnButtons.add(new JButton(new AbstractAction("Open 1"){ public void actionPerformed(ActionEvent arg0) { try { ifr1.setIcon(false); ifr1.setSelected(true); }
Thanks, seems to be perfect.
In the end of this work I shall write a book called Tips for real dummy
programmers like me.
Thanks
Marcos
-Original Message-
From: Brian Gagne [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 18, 2004 5:19 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]