Location:
Search - jmenu java
Search list
Description: java图像界面开发简单实例
最近学习图形界面开发,先来个JLabel,JFileChooser,JMenu的基本应用
Platform: |
Size: 1308 |
Author: WANG1 |
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有关
Platform: |
Size: 8425 |
Author: benson |
Hits:
Description: java图像界面开发简单实例
最近学习图形界面开发,先来个JLabel,JFileChooser,JMenu的基本应用-java image interface development learning simple example of the recent development of a graphical interface, first to a JLabel, JFileChooser, JMenu the basic application
Platform: |
Size: 1024 |
Author: WANG1 |
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:
Description: 一个简单的演示JMenuBar/JMenu/JMenuItem的例子,让你熟练Java的基本控件使用-A simple demonstration JMenuBar/JMenu/JMenuItem example, allows you to use familiar Java' s basic control
Platform: |
Size: 1024 |
Author: 吴贵洪 |
Hits:
Description: 本程序通过调用JAVA提供的BasicStroke;Button; Color Container Graphics Panel ButtonGroup JFrame JComboBox;JCheckBox;JMenu;JMenuItem;ImageIcon;JPanel UIManager等基本类进行了简单的界面设计。
程序运用了JAVA中类的继承特性实现了对父类方法的调用,运用了ButtonHandler类用来侦听基本按钮的操作;运用ButtonHandler1类侦听颜色选择,画笔粗细设置、文字输入按钮的操作。鼠标事件mouseA类继承了MouseAdapter类,用来完成鼠标的相应事件操作;鼠标事件mouseB类继承了MouseMotionAdapter类,用来完成鼠标拖动和鼠标移动时的相应操作。
-This procedure provided by calling JAVA BasicStroke Button Color Container Graphics Panel ButtonGroup JFrame JComboBox JCheckBox JMenu JMenuItem ImageIcon JPanel UIManager basic class a simple interface design. Procedures using the JAVA classes inherit properties of the parent class method implements a call, use the ButtonHandler basic button class to listen for the operation use ButtonHandler1 class listening colors, pen thickness settings, text input button operation. Mouse event mouseA class inherits MouseAdapter class, corresponding to the completion of the mouse event operations mouse event mouseB class inherits MouseMotionAdapter class, used to complete the mouse to drag and move the mouse the corresponding operation.
Platform: |
Size: 62464 |
Author: 远远 |
Hits:
Description: JMenu,一些Swing应用实例Java源码包-JMenu, a number of examples of Java Swing application source package
Platform: |
Size: 8192 |
Author: 陈东 |
Hits:
Description: java的Jmenu,有视频,源码,笔记,方便大家的学习和交流。-java' s Jmenu, a video, source code, notes, we facilitate learning and exchange.
Platform: |
Size: 21433344 |
Author: huyunfei |
Hits:
Description: Java 记事本源码
Java写的记事本程序,MyNotebook 示例源码,通过制作这个Java记事本程序,新手可学习到如何使用Java创建界面、安装各种监听器、创建窗口的主菜单、创建JMenuItem并添加到对应的JMenu中、保存用户编辑的文件、根据文件读写状态适时返回消息、用"另存为"对话框保存文件、如何新建或打开一个已经存在的文件等,虽然这些操作都挺简单的,但却是Java文件编程的基础,涉及一些经常用到的基础知识。-Java Notepad source code written in Java, Notepad program, MyNotebook sample source code, through the production of the Java Notepad program, the novice can learn how to use Java to create the interface, the installation of a variety of listeners, create the main menu of the window, create a JMenuItem and added to the JMenu in corresponding, to save the user to edit the file, depending on the state of the file read and write timely return messages, use the " Save As" dialog box to save the file, how to create or open a file that already exists, etc., although these operations very simple. but it is a Java file programming, involving some of the frequently used basic knowledge.
Platform: |
Size: 15360 |
Author: |
Hits:
Description: Java写的记事本程序,MyNotebook 示例源码,通过制作这个Java记事本程序,新手可学习到如何使用Java创建界面、安装各种监听器、创建窗口的主菜单、创建JMenuItem并添加到对应的JMenu中、保存用户编辑的文件、根据文件读写状态适时返回消息、用"另存为"对话框保存文件、如何新建或打开一个已经存在的文件等,虽然这些操作都挺简单的,但却是Java文件编程的基础,涉及一些经常用到的基础知识。-Notepad program written in Java, MyNotebook sample source code, through the production of the Java Notepad program, the novice can learn how to use Java to create the interface, the installation of a variety of listeners, create the main menu of the window, create a JMenuItem and added to the corresponding JMenu in save the user to edit the file, depending on the state of the file read and write timely return to the message with " Save As" dialog box to save the file, how to create or open a file that already exists, etc., although these operations came to a simple, but Java file programming, involving some of the frequently used basic knowledge.
Platform: |
Size: 13312 |
Author: 李青阳 |
Hits:
Description: 展示如何为一个图形界面添加各种不同的格式,基于JFrame的图像界面的实例
用到JMenuBar,JTabbedPane,JPopupMenu,JMenuItem,JMenu,GridBagConstraints的容器等等很多组件.是java初学者的一个非常好的放学实例程序.-Demonstrate how to add a graphical interface to a variety of different formats instance, based on the JFrame images interface
Used the JMenuBar, JTabbedPane, JPopupMenu, JMenuItem, JMenu, GridBagConstraints the container, and so a lot of components. Java beginners a very good school instance procedures.
Platform: |
Size: 8192 |
Author: xuhuaifeng |
Hits:
Description: package String与AWT的比较
import java.awt.event.WindowAdapter
import java.awt.event.WindowEvent
import javax.swing.JFrame
import javax.swing.JLabel
import javax.swing.JMenu
import javax.swing.JMenuBar
import javax.swing.JMenuItem
public class Demo extends JFrame{//定义一个窗口,继承JFrame窗口类
Platform: |
Size: 1024 |
Author: Brian |
Hits: