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(MagnetRONFrame magnetRONFrame) { super(); JMenu fileMenu = add(new JMenu("ファイル")); fileMenu.add(new OpenAction(magnetRONFrame)); JMenu extractsMenu = add(new JMenu("抽出")); JMenu animationSettingMenu = add(new JMenu("アニメーション設定")); JMenu viewMenu = add(new JMenu("表示")); JMenu animationMenu = add(new JMenu("アニメーション")); animationMenu.add(new StartAnimationAction(magnetRONFrame)); } }