2005/02/21
Hi I'm aki
There are my OpenSource Java codes.(some of them are junk or not implemented)
I'm sorry ,I didn't release internatinal version software yet. one day I'd like to introduce them here.
Thank you for Java2Html. it's very easy and suitable for me.
If you can read Japanese,you can see my software here. Enjoy Java
org.jpn.xucker.audiotowma9
org.jpn.xucker.audiotowma9.AudioToWma9Executer
org.jpn.xucker.audiotowma9.AudioToWma9Wrapper
org.jpn.xucker.commons.audio
org.jpn.xucker.commons.audio.AudioClipAudioPlayer
org.jpn.xucker.commons.audio.AudioStopper
org.jpn.xucker.commons.audio.FileAudioPlayer
org.jpn.xucker.commons.audio.InputStreamAudioPlayer
org.jpn.xucker.commons.audio.JavaSoundAudioPlayer
org.jpn.xucker.commons.audio.ThreadJavaSoundAudioPlayer
org.jpn.xucker.commons.audio.TimerAudioStopper
org.jpn.xucker.commons.audio.word
org.jpn.xucker.commons.audio.word.AbstractWordPlayer
org.jpn.xucker.commons.audio.word.FreeTTSWordPlayer
org.jpn.xucker.commons.audio.word.LocalFileAlphabetDirWordFinder
org.jpn.xucker.commons.audio.word.LocalFilePlainWordFinder
org.jpn.xucker.commons.audio.word.LocalFilePlainWordPlayer
org.jpn.xucker.commons.audio.word.LocalFileWordFinder
org.jpn.xucker.commons.audio.word.LocalFileWordPlayer
org.jpn.xucker.commons.audio.word.MutchWordPlaySystem
org.jpn.xucker.commons.audio.word.WordPlayer
org.jpn.xucker.commons.audio.word.WordPlaySystem
org.jpn.xucker.commons.audio.word.ZipFileWordPlayer
org.jpn.xucker.commons.google
org.jpn.xucker.commons.google.Channel
org.jpn.xucker.commons.google.GoogleAdSenseChannelParser
org.jpn.xucker.commons.io
org.jpn.xucker.commons.io.LineSeparatorChangeInputStream
org.jpn.xucker.commons.io.LineSeparatorCountInputStream
org.jpn.xucker.commons.io.WordCountInputStream
org.jpn.xucker.commons.ipod
org.jpn.xucker.commons.ipod.DoubleLineTextPopper
org.jpn.xucker.commons.ipod.MenuMaker
org.jpn.xucker.commons.ipod.PrevNextMenu
org.jpn.xucker.commons.ipod.SrtConverter
org.jpn.xucker.commons.ipod.TextConverter
org.jpn.xucker.commons.ipod.TextConvertTest
org.jpn.xucker.commons.ipod.TextPopper
org.jpn.xucker.commons.ipod.TextUtil
org.jpn.xucker.commons.property
org.jpn.xucker.commons.property.StatusChangeListener
org.jpn.xucker.commons.property.StatusChangeMonitor
org.jpn.xucker.commons.swt.series
org.jpn.xucker.commons.swt.series.FileListTypeMenu
org.jpn.xucker.commons.swt.series.PropertyMenuListener
org.jpn.xucker.commons.swt.series.ResultData
org.jpn.xucker.commons.swt.series.ResultDialog
org.jpn.xucker.commons.swt.series.fls
org.jpn.xucker.commons.swt.series.fls.FileListStandard
org.jpn.xucker.commons.swt.series.fls.Sample
org.jpn.xucker.commons.swt.series.wfs
org.jpn.xucker.commons.swt.series.wfs.WrapperExecuter
org.jpn.xucker.commons.swt.series.wfs.WrapperFileStandard
org.jpn.xucker.commons.swt.series.wfs.WrapperFileStandardSettingDialog
org.jpn.xucker.commons.swt.ui
org.jpn.xucker.commons.swt.ui.CopyTable
org.jpn.xucker.commons.swt.ui.FileDirChoicer
org.jpn.xucker.commons.swt.ui.FileListImage
org.jpn.xucker.commons.swt.ui.FileListImageStatusChangeListener
org.jpn.xucker.commons.swt.ui.FileListTable
org.jpn.xucker.commons.swt.ui.FileStatusChangeEvent
org.jpn.xucker.commons.swt.ui.FileStatusChangeListener
org.jpn.xucker.commons.swt.ui.FileStatusChanger
org.jpn.xucker.commons.swt.ui.GroupCheckTreeContoler
org.jpn.xucker.commons.swt.ui.ImageCanvas
org.jpn.xucker.commons.swt.ui.MenuItemContainer
org.jpn.xucker.commons.swt.ui.MenuItemContainerImp
org.jpn.xucker.commons.swt.ui.OkCancelDialog
org.jpn.xucker.commons.swt.ui.OkCancelDialogListener
org.jpn.xucker.commons.swt.ui.SWTBasicFileApplication
org.jpn.xucker.commons.swt.ui.SWTFileNoFoundtAction
org.jpn.xucker.commons.swt.ui.SWTStatusChangedMonitor
org.jpn.xucker.commons.swt.ui.tree
org.jpn.xucker.commons.swt.ui.tree.TreeBuilder
org.jpn.xucker.commons.swt.ui.tree.TreeObject
org.jpn.xucker.commons.undo
org.jpn.xucker.commons.undo.AbstractCommand
org.jpn.xucker.commons.undo.Addable
org.jpn.xucker.commons.undo.AddCommand
org.jpn.xucker.commons.undo.Command
org.jpn.xucker.commons.undo.CommandControl
org.jpn.xucker.commons.undo.Deletable
org.jpn.xucker.commons.undo.DeleteCommand
org.jpn.xucker.commons.undo.UndoCommand
org.jpn.xucker.commons.util
org.jpn.xucker.commons.util.AbstractBasicFileApplication
org.jpn.xucker.commons.util.ApplicationProperties
org.jpn.xucker.commons.util.ApplicationUtil
org.jpn.xucker.commons.util.ClipboardUtil
org.jpn.xucker.commons.util.FileNotFoundAction
org.jpn.xucker.commons.util.FileProperties
org.jpn.xucker.commons.util.IOClassLoader
org.jpn.xucker.commons.util.TagUtil
org.jpn.xucker.commons.util.WildCard
org.jpn.xucker.commons.util._FilePreference
org.jpn.xucker.dualsubmit
org.jpn.xucker.dualsubmit.ClipboardTextListener
org.jpn.xucker.dualsubmit.ClipboardTextMonitor
org.jpn.xucker.dualsubmit.ClipboardTextMonitorImp
org.jpn.xucker.dualsubmit.DefaultApplication
org.jpn.xucker.dualsubmit.DualSubmit
org.jpn.xucker.dualsubmit.DualSubmitBrowser
org.jpn.xucker.dualsubmit.DualSubmitBrowserImp
org.jpn.xucker.dualsubmit.DualSubmitMenu
org.jpn.xucker.dualsubmit.DualSubmitMenuImp
org.jpn.xucker.dualsubmit.DualSubmitPlugin
org.jpn.xucker.dualsubmit.DualSubmitPluginImp
org.jpn.xucker.dualsubmit.DualSubmitPluginLoader
org.jpn.xucker.dualsubmit.DualSubmitPluginLoaderImp
org.jpn.xucker.dualsubmit.DualSubmitPreference
org.jpn.xucker.dualsubmit.LoopControler
org.jpn.xucker.dualsubmit.SimpleWindowCloser
org.jpn.xucker.dualsubmit.StringValidator
org.jpn.xucker.dualsubmit.validator
org.jpn.xucker.dualsubmit.validator.AlphabetAndHyphenValidator
org.jpn.xucker.dualsubmit.validator.AlphabetValidator
org.jpn.xucker.dualsubmit.validator.AndValidator
org.jpn.xucker.dualsubmit.validator.NoLineSeparatorValidator
org.jpn.xucker.dualsubmit.validator.NotValidator
org.jpn.xucker.dualsubmit.validator.NoWhiteSpaceValidator
org.jpn.xucker.dualsubmit.validator.OrValidator
org.jpn.xucker.english
org.jpn.xucker.english.Util
org.jpn.xucker.findsame
org.jpn.xucker.findsame.CompositeList
org.jpn.xucker.findsame.CompositeListItem
org.jpn.xucker.findsame.CompositePixelList
org.jpn.xucker.findsame.Error
org.jpn.xucker.findsame.FileUtil
org.jpn.xucker.findsame.FindSameEachOtherMain
org.jpn.xucker.findsame.FindSameFileMain
org.jpn.xucker.findsame.FindSameFolderMain
org.jpn.xucker.findsame.MD5Util
org.jpn.xucker.findsame.Result
org.jpn.xucker.findsame.ResultList
org.jpn.xucker.freemind
org.jpn.xucker.freemind.FreeMindUtils
org.jpn.xucker.freemind.Map
org.jpn.xucker.freemind.Node
org.jpn.xucker.imagemarker
org.jpn.xucker.imagemarker.GUIProperties
org.jpn.xucker.imagemarker.ImageMarker
org.jpn.xucker.linkcheck
org.jpn.xucker.linkcheck.LinkChecker
org.jpn.xucker.mp3
org.jpn.xucker.mp3.MP3JavaSoundAudioPlayer
org.jpn.xucker.optipngwrapper
org.jpn.xucker.optipngwrapper.OptiPNGExecuter
org.jpn.xucker.optipngwrapper.OptiPngWrap
org.jpn.xucker.optipngwrapper.ResultData
org.jpn.xucker.optipngwrapper.ResultDialog
org.jpn.xucker.phonixSplit
org.jpn.xucker.phonixSplit.PhonixSplit
org.jpn.xucker.phonixSplit.PhonixSplitCanvas
org.jpn.xucker.phonixSplit.QuestionControl
org.jpn.xucker.phonixSplit.QuestionFolder
org.jpn.xucker.playdict
org.jpn.xucker.playdict.DictPreference
org.jpn.xucker.playdict.PlayDictMain
org.jpn.xucker.playdict.SoundWord
org.jpn.xucker.repeatrecorder
org.jpn.xucker.repeatrecorder.ControledObject
org.jpn.xucker.repeatrecorder.RepeatRecorder
org.jpn.xucker.repeatrecorder.RepeatRecorderMenu
org.jpn.xucker.returncode
org.jpn.xucker.returncode.ReturnCodeChecker
org.jpn.xucker.returncode.ReturnCodeMain
org.jpn.xucker.rssCreator
org.jpn.xucker.rssCreator.main
org.jpn.xucker.snacksoundtoolkit
org.jpn.xucker.snacksoundtoolkit.ESPS
org.jpn.xucker.snacksoundtoolkit.ESPSParser
org.jpn.xucker.snacksoundtoolkit.PitchCanvas
org.jpn.xucker.srtipod
org.jpn.xucker.srtipod.main
org.jpn.xucker.srtipod.SrtIPodMain
org.jpn.xucker.subconverter
org.jpn.xucker.subconverter.SubConverter
org.jpn.xucker.subplayer
org.jpn.xucker.subplayer.ImageCanvas
org.jpn.xucker.subplayer.Mark
org.jpn.xucker.subplayer.MarkControler
org.jpn.xucker.subplayer.SubMainMenu
org.jpn.xucker.subplayer.SubPlayFileUpdater
org.jpn.xucker.subplayer.SubPlayFileXmlDialog
org.jpn.xucker.subplayer.SubPlayFileXmlObject
org.jpn.xucker.subplayer.SubPlayMain
org.jpn.xucker.subplayer.SubPlayPreferenceXmlObject
org.jpn.xucker.subtitle
org.jpn.xucker.subtitle.StandardSubObject
org.jpn.xucker.subtitle.SubUtils
org.jpn.xucker.subtitle.spumux
org.jpn.xucker.subtitle.spumux.Action
org.jpn.xucker.subtitle.spumux.Button
org.jpn.xucker.subtitle.spumux.Spu
org.jpn.xucker.subtitle.spumux.Spumux
org.jpn.xucker.subtitle.spumux.SpumuxParser
org.jpn.xucker.subtitle.spumux.Textsub
org.jpn.xucker.subtitle.srt
org.jpn.xucker.subtitle.srt.SRTList
org.jpn.xucker.subtitle.srt.SRTObject
org.jpn.xucker.subtitle.srt.SRTParser
org.jpn.xucker.subtitle.srt.TimeData
org.jpn.xucker.subtitle.sub
org.jpn.xucker.subtitle.sub.SUBList
org.jpn.xucker.subtitle.sub.SUBObject
org.jpn.xucker.subtitle.sub.SUBParser
org.jpn.xucker.subtitle.sub.TextObject
org.jpn.xucker.subtitle.sub2
org.jpn.xucker.subtitle.sub2.CommentObject
org.jpn.xucker.subtitle.sub2.SUBObject
org.jpn.xucker.subtitle.sub2.SUBParser
org.jpn.xucker.tab2tree
org.jpn.xucker.tab2tree.Main
org.jpn.xucker.tab2tree.StringTreeUtils
org.jpn.xucker.taiyaku
org.jpn.xucker.taiyaku.TaiyakuData
org.jpn.xucker.taiyaku.TaiyakuParser
org.jpn.xucker.treetext
org.jpn.xucker.treetext.main
org.jpn.xucker.treetext.TreeText
org.jpn.xucker.wavconvert
org.jpn.xucker.wavconvert.AudioFormat
org.jpn.xucker.wavconvert.SoxExecuter
org.jpn.xucker.wavconvert.SoxWrapper
org.jpn.xucker.wmatopcm
org.jpn.xucker.wmatopcm.WmaToPcmExecuter
org.jpn.xucker.wmatopcm.WmaToPcmWrapper
org.jpn.xucker.wordcounter
org.jpn.xucker.wordcounter.WordCountData
org.jpn.xucker.wordcounter.WordCountMain
org.jpn.xucker.wordcounter.WordCountMenu
org.jpn.xucker.xs.aegis
org.jpn.xucker.xs.aegis.Action
org.jpn.xucker.xs.aegis.Block
org.jpn.xucker.xs.aegis.Domain
org.jpn.xucker.xs.aegis.Query
org.jpn.xucker.xs.aegis.QueryList

SubMainMenu.java
/*
 * Created on 2004/11/15
 * Author aki@www.xucker.jpn.org
 * License Apache2.0 or Common Public License
 */
package org.jpn.xucker.subplayer;


import org.apache.commons.beanutils.MethodUtils;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.widgets.Menu;
import org.eclipse.swt.widgets.MenuItem;
import org.eclipse.swt.widgets.Shell;
import org.jpn.xucker.commons.swt.ui.MenuItemContainerImp;

import java.lang.reflect.InvocationTargetException;



public class SubMainMenu extends MenuItemContainerImp implements SelectionListener{

  /**

   @param shell

   */

   private MenuItem file;

private MenuItem newz;

private MenuItem open;

private MenuItem edit;

private MenuItem save;

private MenuItem saveAs;

private MenuItem exit;

private MenuItem control;

private MenuItem autoplay;

private MenuItem play;

private MenuItem stop;

private MenuItem prev;

private MenuItem next;

private MenuItem first;

private MenuItem last;

private MenuItem set;

private MenuItem checkPlaySound;

private MenuItem checkPlayFirstSub;

private MenuItem checkPlaySecondSub;

private MenuItem checkStartNew;

private MenuItem checkRepeat;

private MenuItem checkReverse;

private MenuItem waittime;

private MenuItem w0;

private MenuItem w1;

private MenuItem w3;

private MenuItem w10;

private MenuItem w15;

private MenuItem w30;

private MenuItem w45;

private MenuItem w60;

private MenuItem margintime;

private MenuItem m0;

private MenuItem m1;

private MenuItem m1p5;

private MenuItem m2;

private MenuItem m2p5;

private MenuItem m3;

private MenuItem m4;

private MenuItem m5;

private MenuItem m10;

private MenuItem help;

private MenuItem about;

private MenuItem homepage;



  public SubMainMenu(Shell parent) {

    Menu root_menu=new Menu(parent,SWT.BAR);

    parent.setMenuBar(root_menu);



    //ファイル

Menu file_menu=new Menu(root_menu);

file=new MenuItem(root_menu,SWT.CASCADE);

file.setText("ファイル");

file.setMenu(file_menu);

addMenuItem(file,"file");

//新規

newz=new MenuItem(file_menu,SWT.PUSH);

newz.setText("新規");

newz.addSelectionListener(this);

addMenuItem(newz,"newz");

//開く

open=new MenuItem(file_menu,SWT.PUSH);

open.setText("開く");

open.addSelectionListener(this);

addMenuItem(open,"open");

//変更

edit=new MenuItem(file_menu,SWT.PUSH);

edit.setText("変更");

edit.addSelectionListener(this);

addMenuItem(edit,"edit");

//保存

save=new MenuItem(file_menu,SWT.PUSH);

save.setText("保存");

save.addSelectionListener(this);

addMenuItem(save,"save");

//別名で保存

saveAs=new MenuItem(file_menu,SWT.PUSH);

saveAs.setText("別名で保存");

saveAs.addSelectionListener(this);

addMenuItem(saveAs,"saveAs");

MenuItem separatemenu7=new MenuItem(file_menu,SWT.SEPARATOR);

addMenuItem(separatemenu7,"separatemenu7");

//終了

exit=new MenuItem(file_menu,SWT.PUSH);

exit.setText("終了");

exit.addSelectionListener(this);

addMenuItem(exit,"exit");

//コントロール

Menu control_menu=new Menu(root_menu);

control=new MenuItem(root_menu,SWT.CASCADE);

control.setText("コントロール");

control.setMenu(control_menu);

addMenuItem(control,"control");

//連続再生

autoplay=new MenuItem(control_menu,SWT.PUSH);

autoplay.setText("連続再生");

autoplay.addSelectionListener(this);

addMenuItem(autoplay,"autoplay");

//再生

play=new MenuItem(control_menu,SWT.PUSH);

play.setText("再生");

play.addSelectionListener(this);

addMenuItem(play,"play");

//停止

stop=new MenuItem(control_menu,SWT.PUSH);

stop.setText("停止");

stop.addSelectionListener(this);

addMenuItem(stop,"stop");

MenuItem separatemenu13=new MenuItem(control_menu,SWT.SEPARATOR);

addMenuItem(separatemenu13,"separatemenu13");

//前へ

prev=new MenuItem(control_menu,SWT.PUSH);

prev.setText("前へ");

prev.addSelectionListener(this);

addMenuItem(prev,"prev");

//次へ

next=new MenuItem(control_menu,SWT.PUSH);

next.setText("次へ");

next.addSelectionListener(this);

addMenuItem(next,"next");

//最初へ

first=new MenuItem(control_menu,SWT.PUSH);

first.setText("最初へ");

first.addSelectionListener(this);

addMenuItem(first,"first");

//最後へ

last=new MenuItem(control_menu,SWT.PUSH);

last.setText("最後へ");

last.addSelectionListener(this);

addMenuItem(last,"last");

//設定

Menu set_menu=new Menu(root_menu);

set=new MenuItem(root_menu,SWT.CASCADE);

set.setText("設定");

set.setMenu(set_menu);

addMenuItem(set,"set");

//音声を再生する

checkPlaySound=new MenuItem(set_menu,SWT.CHECK);

checkPlaySound.setText("音声を再生する");

checkPlaySound.addSelectionListener(this);

addMenuItem(checkPlaySound,"checkPlaySound");

//ファースト字幕を表示する

checkPlayFirstSub=new MenuItem(set_menu,SWT.CHECK);

checkPlayFirstSub.setText("ファースト字幕を表示する");

checkPlayFirstSub.addSelectionListener(this);

addMenuItem(checkPlayFirstSub,"checkPlayFirstSub");

//セカンド字幕を表示する

checkPlaySecondSub=new MenuItem(set_menu,SWT.CHECK);

checkPlaySecondSub.setText("セカンド字幕を表示する");

checkPlaySecondSub.addSelectionListener(this);

addMenuItem(checkPlaySecondSub,"checkPlaySecondSub");

MenuItem separatemenu22=new MenuItem(set_menu,SWT.SEPARATOR);

addMenuItem(separatemenu22,"separatemenu22");

//起動時に新規作成する

checkStartNew=new MenuItem(set_menu,SWT.CHECK);

checkStartNew.setText("起動時に新規作成する");

checkStartNew.addSelectionListener(this);

addMenuItem(checkStartNew,"checkStartNew");

//繰り返し再生する

checkRepeat=new MenuItem(set_menu,SWT.CHECK);

checkRepeat.setText("繰り返し再生する");

checkRepeat.addSelectionListener(this);

addMenuItem(checkRepeat,"checkRepeat");

//逆方向へ再生する

checkReverse=new MenuItem(set_menu,SWT.CHECK);

checkReverse.setText("逆方向へ再生する");

checkReverse.addSelectionListener(this);

addMenuItem(checkReverse,"checkReverse");

//待ち時間

Menu waittime_menu=new Menu(set_menu);

waittime=new MenuItem(set_menu,SWT.CASCADE);

waittime.setText("待ち時間");

waittime.setMenu(waittime_menu);

addMenuItem(waittime,"waittime");

// 0秒

w0=new MenuItem(waittime_menu,SWT.RADIO);

w0.setText(" 0秒");

w0.addSelectionListener(this);

addMenuItem(w0,"w0");

// 1秒

w1=new MenuItem(waittime_menu,SWT.RADIO);

w1.setText(" 1秒");

w1.addSelectionListener(this);

addMenuItem(w1,"w1");

// 3秒

w3=new MenuItem(waittime_menu,SWT.RADIO);

w3.setText(" 3秒");

w3.addSelectionListener(this);

addMenuItem(w3,"w3");

//10秒

w10=new MenuItem(waittime_menu,SWT.RADIO);

w10.setText("10秒");

w10.addSelectionListener(this);

addMenuItem(w10,"w10");

//15秒

w15=new MenuItem(waittime_menu,SWT.RADIO);

w15.setText("15秒");

w15.addSelectionListener(this);

addMenuItem(w15,"w15");

//30秒

w30=new MenuItem(waittime_menu,SWT.RADIO);

w30.setText("30秒");

w30.addSelectionListener(this);

addMenuItem(w30,"w30");

//45秒

w45=new MenuItem(waittime_menu,SWT.RADIO);

w45.setText("45秒");

w45.addSelectionListener(this);

addMenuItem(w45,"w45");

//60秒

w60=new MenuItem(waittime_menu,SWT.RADIO);

w60.setText("60秒");

w60.addSelectionListener(this);

addMenuItem(w60,"w60");

//再生拡張

Menu margintime_menu=new Menu(set_menu);

margintime=new MenuItem(set_menu,SWT.CASCADE);

margintime.setText("再生拡張");

margintime.setMenu(margintime_menu);

addMenuItem(margintime,"margintime");

//  0 秒

m0=new MenuItem(margintime_menu,SWT.RADIO);

m0.setText("  0 秒");

m0.addSelectionListener(this);

addMenuItem(m0,"m0");

//0.1 秒

m1=new MenuItem(margintime_menu,SWT.RADIO);

m1.setText("0.1 秒");

m1.addSelectionListener(this);

addMenuItem(m1,"m1");

//0.15秒

m1p5=new MenuItem(margintime_menu,SWT.RADIO);

m1p5.setText("0.15秒");

m1p5.addSelectionListener(this);

addMenuItem(m1p5,"m1p5");

//0.2 秒

m2=new MenuItem(margintime_menu,SWT.RADIO);

m2.setText("0.2 秒");

m2.addSelectionListener(this);

addMenuItem(m2,"m2");

//0.25秒

m2p5=new MenuItem(margintime_menu,SWT.RADIO);

m2p5.setText("0.25秒");

m2p5.addSelectionListener(this);

addMenuItem(m2p5,"m2p5");

//0.3 秒

m3=new MenuItem(margintime_menu,SWT.RADIO);

m3.setText("0.3 秒");

m3.addSelectionListener(this);

addMenuItem(m3,"m3");

//0.4 秒

m4=new MenuItem(margintime_menu,SWT.RADIO);

m4.setText("0.4 秒");

m4.addSelectionListener(this);

addMenuItem(m4,"m4");

//0.5 秒

m5=new MenuItem(margintime_menu,SWT.RADIO);

m5.setText("0.5 秒");

m5.addSelectionListener(this);

addMenuItem(m5,"m5");

//1.0 秒

m10=new MenuItem(margintime_menu,SWT.RADIO);

m10.setText("1.0 秒");

m10.addSelectionListener(this);

addMenuItem(m10,"m10");

//ヘルプ

Menu help_menu=new Menu(root_menu);

help=new MenuItem(root_menu,SWT.CASCADE);

help.setText("ヘルプ");

help.setMenu(help_menu);

addMenuItem(help,"help");

//About SubPlayer

about=new MenuItem(help_menu,SWT.PUSH);

about.setText("About SubPlayer");

about.addSelectionListener(this);

addMenuItem(about,"about");

//ホームページ

homepage=new MenuItem(help_menu,SWT.PUSH);

homepage.setText("ホームページ");

homepage.addSelectionListener(this);

addMenuItem(homepage,"homepage");



  }



  

  public void widgetSelected(SelectionEvent event) {

  Object target=event.getSource();

     if(target==null){

       //

       throw new RuntimeException("selected target is null");

       }

     //新規

else if(target==newz){

call_event("newz");

  }

//開く

else if(target==open){

call_event("open");

  }

//変更

else if(target==edit){

call_event("edit");

  }

//保存

else if(target==save){

call_event("save");

  }

//別名で保存

else if(target==saveAs){

call_event("saveAs");

  }

//終了

else if(target==exit){

call_event("exit");

  }

//連続再生

else if(target==autoplay){

call_event("autoplay");

  }

//再生

else if(target==play){

call_event("play");

  }

//停止

else if(target==stop){

call_event("stop");

  }

//前へ

else if(target==prev){

call_event("prev");

  }

//次へ

else if(target==next){

call_event("next");

  }

//最初へ

else if(target==first){

call_event("first");

  }

//最後へ

else if(target==last){

call_event("last");

  }

//音声を再生する

else if(target==checkPlaySound){

call_event("checkPlaySound");

  }

//ファースト字幕を表示する

else if(target==checkPlayFirstSub){

call_event("checkPlayFirstSub");

  }

//セカンド字幕を表示する

else if(target==checkPlaySecondSub){

call_event("checkPlaySecondSub");

  }

//起動時に新規作成する

else if(target==checkStartNew){

call_event("checkStartNew");

  }

//繰り返し再生する

else if(target==checkRepeat){

call_event("checkRepeat");

  }

//逆方向へ再生する

else if(target==checkReverse){

call_event("checkReverse");

  }

// 0秒

else if(target==w0){

call_event("w0");

  }

// 1秒

else if(target==w1){

call_event("w1");

  }

// 3秒

else if(target==w3){

call_event("w3");

  }

//10秒

else if(target==w10){

call_event("w10");

  }

//15秒

else if(target==w15){

call_event("w15");

  }

//30秒

else if(target==w30){

call_event("w30");

  }

//45秒

else if(target==w45){

call_event("w45");

  }

//60秒

else if(target==w60){

call_event("w60");

  }

//  0 秒

else if(target==m0){

call_event("m0");

  }

//0.1 秒

else if(target==m1){

call_event("m1");

  }

//0.15秒

else if(target==m1p5){

call_event("m1p5");

  }

//0.2 秒

else if(target==m2){

call_event("m2");

  }

//0.25秒

else if(target==m2p5){

call_event("m2p5");

  }

//0.3 秒

else if(target==m3){

call_event("m3");

  }

//0.4 秒

else if(target==m4){

call_event("m4");

  }

//0.5 秒

else if(target==m5){

call_event("m5");

  }

//1.0 秒

else if(target==m10){

call_event("m10");

  }

//About SubPlayer

else if(target==about){

call_event("about");

  }

//ホームページ

else if(target==homepage){

call_event("homepage");

  }



    }

    

    public void widgetDefaultSelected(SelectionEvent arg0) {

    // TODO Auto-generated method stub

    

  }

  /*

  public void do_newz(MenuItemContainer menuItemContainer){}

public void do_open(MenuItemContainer menuItemContainer){}

public void do_edit(MenuItemContainer menuItemContainer){}

public void do_save(MenuItemContainer menuItemContainer){}

public void do_saveAs(MenuItemContainer menuItemContainer){}

public void do_exit(MenuItemContainer menuItemContainer){}

public void do_autoplay(MenuItemContainer menuItemContainer){}

public void do_play(MenuItemContainer menuItemContainer){}

public void do_stop(MenuItemContainer menuItemContainer){}

public void do_prev(MenuItemContainer menuItemContainer){}

public void do_next(MenuItemContainer menuItemContainer){}

public void do_first(MenuItemContainer menuItemContainer){}

public void do_last(MenuItemContainer menuItemContainer){}

public void do_checkPlaySound(MenuItemContainer menuItemContainer){}

public void do_checkPlayFirstSub(MenuItemContainer menuItemContainer){}

public void do_checkPlaySecondSub(MenuItemContainer menuItemContainer){}

public void do_checkStartNew(MenuItemContainer menuItemContainer){}

public void do_checkRepeat(MenuItemContainer menuItemContainer){}

public void do_checkReverse(MenuItemContainer menuItemContainer){}

public void do_w0(MenuItemContainer menuItemContainer){}

public void do_w1(MenuItemContainer menuItemContainer){}

public void do_w3(MenuItemContainer menuItemContainer){}

public void do_w10(MenuItemContainer menuItemContainer){}

public void do_w15(MenuItemContainer menuItemContainer){}

public void do_w30(MenuItemContainer menuItemContainer){}

public void do_w45(MenuItemContainer menuItemContainer){}

public void do_w60(MenuItemContainer menuItemContainer){}

public void do_m0(MenuItemContainer menuItemContainer){}

public void do_m1(MenuItemContainer menuItemContainer){}

public void do_m1p5(MenuItemContainer menuItemContainer){}

public void do_m2(MenuItemContainer menuItemContainer){}

public void do_m2p5(MenuItemContainer menuItemContainer){}

public void do_m3(MenuItemContainer menuItemContainer){}

public void do_m4(MenuItemContainer menuItemContainer){}

public void do_m5(MenuItemContainer menuItemContainer){}

public void do_m10(MenuItemContainer menuItemContainer){}

public void do_about(MenuItemContainer menuItemContainer){}

public void do_homepage(MenuItemContainer menuItemContainer){}



  */

  public void call_event(String keyName){

    Object object=getExecuteObject();

  try {

        MethodUtils.invokeMethod(object,"do_"+keyName,this);

    catch (NoSuchMethodException e) {

        // TODO Auto-generated catch block

        e.printStackTrace();

    catch (IllegalAccessException e) {

        // TODO Auto-generated catch block

        e.printStackTrace();

    catch (InvocationTargetException e) {

        // TODO Auto-generated catch block

        e.printStackTrace();

    }

  }

  

}