home *** CD-ROM | disk | FTP | other *** search
- package javax.swing.plaf.basic;
-
- import java.awt.event.ActionEvent;
- import java.beans.PropertyVetoException;
- import javax.swing.AbstractAction;
- import javax.swing.JComponent;
- import javax.swing.JInternalFrame;
-
- public class BasicDesktopPaneUI$NavigateAction extends AbstractAction {
- // $FF: synthetic field
- private final BasicDesktopPaneUI this$0;
-
- protected BasicDesktopPaneUI$NavigateAction(BasicDesktopPaneUI var1) {
- this.this$0 = var1;
- }
-
- public void actionPerformed(ActionEvent var1) {
- BasicDesktopPaneUI.access$100(this.this$0);
- BasicDesktopPaneUI.access$208();
- if (BasicDesktopPaneUI.access$200() >= BasicDesktopPaneUI.access$300().size()) {
- BasicDesktopPaneUI.access$202(0);
- }
-
- JComponent var2 = (JComponent)BasicDesktopPaneUI.access$300().elementAt(BasicDesktopPaneUI.access$200());
- if (var2 instanceof JInternalFrame) {
- JInternalFrame var3 = (JInternalFrame)var2;
-
- try {
- var3.setSelected(true);
- this.this$0.desktopManager.activateFrame(var3);
- } catch (PropertyVetoException var7) {
- }
- } else if (var2 instanceof JInternalFrame.JDesktopIcon) {
- JInternalFrame.JDesktopIcon var8 = (JInternalFrame.JDesktopIcon)var2;
- JInternalFrame var4 = var8.getInternalFrame();
-
- try {
- var4.setSelected(true);
- this.this$0.desktopManager.activateFrame(var4);
- } catch (PropertyVetoException var6) {
- }
- }
-
- }
-
- public boolean isEnabled() {
- return true;
- }
- }
-