汉诺塔问题JAVA实现import java.awt.*;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.awt.event.WindowAdapter;import java.awt.event.WindowEvent;import javax.swing.JDialog;import javax.swing.JLabel;import javax.swing.JPanel;class Desk extends PanelLabel topPanel,leftLeg,rightLeg,name;int num; / 桌子上现有盘子的数量public int topy=340,topx=80; /第一个个盘子在哪里放下int maxsize=12;int initialx=0,initialy=340;int record=new int12;