上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页
摘要: 1 import javax.swing.*; 2 import java.awt.event.*; 3 import java.awt.*; 4 public class InnerButton { 5 JFrame frame; 6 JButton b; 7 8 public static void main(String[] args){ 9 InnerButton gui=new InnerButton();10 gui.go();11 }12 public void go(){13 ... 阅读全文
posted @ 2013-08-08 15:44 婷婷玉立的成长之家 阅读(245) 评论(0) 推荐(0) 编辑
摘要: static代表“每个类一个”而不是“每个对象一个”。即静态变量是类的所有对象共有的。1 static JFrame f;2 static MyDrawPanel ml;整个应用程序如下:定义在public void go(){...}里面的变量的生存空间仅仅是这个方法,出了这个方法,其他的类和方法是没法调用这个·方法里定义的变量的。 1 import javax.sound.midi.ControllerEventListener; 2 3 import javax.sound.midi.MidiEvent; 4 import javax.sound.midi.MidiSystem 阅读全文
posted @ 2013-08-08 11:37 婷婷玉立的成长之家 阅读(771) 评论(0) 推荐(0) 编辑
摘要: 1 import java.awt.event.*; 2 import javax.swing.*; 3 4 public class SimpleGui2B implements ItemListener { 5 6 JCheckBox checkbox; 7 public static void main(String[] args){ 8 SimpleGui2B littleCase=new SimpleGui2B(); 9 littleCase.go();10 11 }12 public v... 阅读全文
posted @ 2013-08-07 22:44 婷婷玉立的成长之家 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 1、中国移动的企业文化:见中国移动的官网。http://www.10086.cn/aboutus/culture/culture1/201208/t20120802_33082.htm一、中国移动的的企业中国移动公司企业文化 中国移动通信企业文化的核心内涵是“责任”和“卓越”,即要以“正身之德”而“厚民之生”,做兼济天下、善尽责任、不断进步的优秀企业公民。 中国移动企业文化理念体系 企业价值观:正德厚生 臻于至善 企业使命:创无限通信世界, 做信息社会栋梁 中国移动的愿景:成为卓越品质的创造者 中国移动的核心价值观 “正德厚生 臻于至善” 企业的价值观是企业持久和最根本的信仰,是... 阅读全文
posted @ 2013-08-07 10:33 婷婷玉立的成长之家 阅读(1272) 评论(0) 推荐(0) 编辑
摘要: 问题1:1 public ButtonDemo(){2 //ImageIcon leftButtonIcon=new ImageIcon("images/a.png");3 ImageIcon leftButtonIcon=createImageIcon("images/a.png");4 ImageIcon middleButtonIcon=createImageIcon("images/middle.png");5 ImageIcon rightButtonIcon=createImageIcon("images/rig 阅读全文
posted @ 2013-07-15 11:11 婷婷玉立的成长之家 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 来自JDK API 1.6.0:Try this:Click the Launch button to run the Button Demo using Java™ Web Start (download JDK 7 or later). Alternatively, to compile and run the example yourself, consult the example index. Run ButtonDemo (download JDK 7 or later). Or, to compile and run the example yourself, co... 阅读全文
posted @ 2013-07-11 11:11 婷婷玉立的成长之家 阅读(436) 评论(0) 推荐(0) 编辑
摘要: 1 import java.awt.*;2 import java.awt.event.*;3 import javax.swing.*;4 import java.sql.*;5 import java.util.*; 6 import java.util.Date; 7 import java.text.*;8 import java.text.SimpleDateFormat;提问者采纳: 1 import java.awt.*; 2 包含的类都是为创建用户接口或画图形图像的; 3 import java.awt.event.*; 4 由AWT组件提供的处理事件的类与接口; 5 im.. 阅读全文
posted @ 2013-07-10 22:14 婷婷玉立的成长之家 阅读(561) 评论(0) 推荐(0) 编辑
摘要: 1 public static void main(String[] args) { 2 // TODO Auto-generated method stub 3 SimpleGui1B gui=new SimpleGui1B(); 4 gui.go(); //静态方法不是不能调用非静态方法吗?? 5 6 } 7 public void go(){ 8 JFrame frame=new JFrame(); 9 button=new JButton("click me");10 ... 阅读全文
posted @ 2013-07-10 16:01 婷婷玉立的成长之家 阅读(14532) 评论(1) 推荐(0) 编辑
摘要: 这句话有问题:frame.setContentPane().add(button);1 The method setContentPane(Container) in the type JFrame is not applicable for the arguments ()更改之后,可以了。frame.getContentPane().add(button);可是不还是一样吗?? 阅读全文
posted @ 2013-07-10 10:28 婷婷玉立的成长之家 阅读(222) 评论(0) 推荐(0) 编辑
摘要: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0at ExTestDrive.main(ExTestDrive.java:14):程序代码如下: 1 class MyEx extends Exception{} 2 3 public class ExTestDrive { 4 5 6 public static void main(String[] args) { 7 // TODO Auto-generated method stub 8 S... 阅读全文
posted @ 2013-07-09 11:44 婷婷玉立的成长之家 阅读(40943) 评论(0) 推荐(2) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页