文章归档

赚钱网站

http://www.make-moneys.com/

一个简单日记本的源程序,功能并不完全,请高人指点

一个简单日记本的源程序,功能并不完全,请高人指点 import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.util.*; import java.text.*; import java.io.*; public class Note extends Frame { private MenuBar mb; private Menu mset_param ,mhelp; private MenuItem mibc ,miSound; private MenuItem miabout; //缺省的背景颜色 private static Color backgroundcolor = Color.GRAY; //funtction of the button on plcb is chose year andmonth //and set alarm colock and remind booking private JCheckBox remindBook ,alarmColock; private JComboBox cbyears ,cbmonths; private JPanel plcb; //日历按钮 private JPanel plbt; private JButton button[]; //add vector to contain button[],so that find it private Vector v; //save the year and month private String choseyear ,chosemonth; private int choseyearint ,chosemonthint; private boolean changed = false; private boolean fileExist = false;//the application first run to find file private static boolean needSound; //add text to write down what to do in the future private TextArea tanote; pri …

>>Read more

Java 中 Layout(布局管理器)的使用

Redfox @ 2005-01-18 15:40 Swing 之 Layout 1、 null (空 Layout) : 界面的控件可以随便放置。 2、 BorderLayout:

java学习–Layout-窗口布局学习

显示当前时间Applet

import java.util.Date;import java.text.*;import java.awt.*;import java.applet.*; public class NowString extends Applet{int x=10;char char_class1=’A’; Label output1;Label output2; public void init(){

JBuilder2005 英文版下载

http://www.unabc.com/soft/4507.html

—java 获取系统时间

1. new java.util.Date() 2.

java中怎么获得系统时间

//如何获得系统日期,并把其转化为 String import java.util.Date; import java.text.*; public class StrDate{ public static void main(String[] args){ Date d = new Date(); //String str = d.toString(); SimpleDateFormat sdf=new SimpleDateFormat(“yyyy-MM-dd kk:mm:ss “);//其中yyyy-MM-dd是你要表示的格式 //可以任意组合,不限个数和次序;具体表示为:MM-month,dd-day,yyyy-year;kk-hour,mm-minute,ss-second; String str=sdf.format(d); System.out.println(“The date is : ” str); } }