Mega Code Archive
JDesktopPane Cascade Demo
import java.beans.PropertyVetoException;
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
public class CascadeDemo extends JFrame implements ActionListener{
private static ImageIcon EARTH;
private int m_count;
private int m_tencount;
private JButton m_newFrame;
private JDesktopPane m_desktop;
private JComboBox m_UIBox;
private UIManager.LookAndFeelInfo[] m_infos;
public CascadeDemo() {
super("CascadeDemo");
EARTH = new ImageIcon("earth.jpg");
m_count = m_tencount = 0;
m_desktop = new JDesktopPane();
m_desktop.putClientProperty("JDesktopPane.dragMode","outline");
m_newFrame = new JButton("New Frame");
m_newFrame.addActionListener(this);
m_infos = UIManager.getInstalledLookAndFeels();
String[] LAFNames = new String[m_infos.length];
for(int i=0; i