Location:
Search - awt ja
Search list
Description: java中awt应用的例子,希望能给大家帮助-java application which awt example, in the hope of giving everyone!
Platform: |
Size: 18432 |
Author: 王菲菲 |
Hits:
Description: MediaPlayer代码,部分代码,合适请用:
import java.awt.*
import java.awt.event.*
import javax.swing.*
import javax.media.*
import java.io.*
import java.util.* //为了导入Vector
//import com.sun.java.swing.plaf.windows.*
public class MediaPlayer extends JFrame implements ActionListener,Runnable
{
private JMenuBar bar //菜单条
private JMenu fileMenu,choiceMenu,aboutMenu
private JMenuItem openItem,openDirItem,closeItem,about,infor
private JCheckBoxMenuItem onTop
private boolean top=false,loop //设定窗口是否在最前面
private Player player //Play是个实现Controller的接口
private File file,listFile //利用File类结合JFileChooser进行文件打开操作,后则与list.ini有关-MediaPlayer code, some code, appropriate use: import java.awt .* import java.awt.event .* import javax.swing .* import javax.media .* import java.io.* import java.util .*// in order to import Vector// import com.sun.java.swing.plaf.windows .* public class MediaPlayer extends JFrame implements ActionListener, Runnable (private JMenuBar bar// menu bar private JMenu fileMenu, choiceMenu, aboutMenu private JMenuItem openItem, openDirItem, closeItem, about, infor private JCheckBoxMenuItem onTop private boolean top = false, loop// set the window in the top private Player player// Play is a Controller Interface realize private File file, listFile// use File Class JFileChooser combine files to open operation, and after the relevant list.ini
Platform: |
Size: 8192 |
Author: benson |
Hits: