package org.ntlab.deltaViewer; import javax.swing.JMenu; import javax.swing.JMenuBar; import org.ntlab.actions.OpenAction; import org.ntlab.actions.StartAnimationAction; public class MagnetRONMenuBar extends JMenuBar { public MagnetRONMenuBar(IMagnetRON magnetRON) { super(); JMenu fileMenu = add(new JMenu("ファイル")); fileMenu.add(new OpenAction(magnetRON)); JMenu extractsMenu = add(new JMenu("機能抽出")); JMenu animationSettingMenu = add(new JMenu("アニメーション設定")); JMenu viewMenu = add(new JMenu("表示")); JMenu animationMenu = add(new JMenu("アニメーション")); animationMenu.add(new StartAnimationAction(magnetRON)); } }