knrt.net
当前位置:首页 >> 用JAvA编写一个GUI程序 >>

用JAvA编写一个GUI程序

保存时文件名如file.txt 文件格式也要输入 !!!注意该程序只能打开txt文件、java源程序文件、html文件等, Word的doc文件是特殊格式文件不能用本程序打开。 import java.io.*; import java.awt.*; import java.awt.event.*; public class jtxtf...

import java.awt.BorderLayout; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; import javax.s...

package com.test; import java.awt.FlowLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; public class aaa extends J...

package com.guard.test; import java.awt.Component; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JP...

下午发 五分钟搞定,先给你发个简单的,照例子自己去做你想要的计算器 package aaa; import java.awt.*; import java.awt.event.*; import javax.swing.*; public class YunSuan implements ActionListener,ItemListener { public static JFrame...

//程序由Guess类组成,是一个猜数字的小游戏。 //多给点财富吧 //Guess.java import javax.swing.*; import javax.swing.event.*; import java.util.*; import java.awt.*; import java.awt.event.*; public class Guess extends JFrame { publi...

import java.awt.FlowLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.JButton;import javax.swing.JFrame;import javax.swing.JLabel;import javax.swing.JTextArea;import javax.swing.JT...

import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax....

这是刚才写的 import java.awt.FlowLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JTextField; ...

很久之前写过的,凑合着看吧, package 个人练习;import java.awt.FileDialog;import java.awt.Menu;import java.awt.MenuBar;import java.awt.MenuItem;import java.awt.TextArea;import java.awt.event.ActionEvent;import java.awt.event.Act...

网站首页 | 网站地图
All rights reserved Powered by www.knrt.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com