上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: 学习java窗口基本操作时无聊写的 就当记录 代码如下: package day08; import java.awt.BorderLayout;import java.awt.Color;import java.awt.FlowLayout;import java.awt.Font;import 阅读全文
posted @ 2017-06-20 19:41 辰峰 阅读(218) 评论(0) 推荐(0) 编辑
摘要: java窗口按钮设置五个方向 代码如下: package Day08; import java.awt.BorderLayout;import javax.swing.JButton;import javax.swing.JFrame; @SuppressWarnings("serial")publ 阅读全文
posted @ 2017-06-20 19:39 辰峰 阅读(1097) 评论(0) 推荐(0) 编辑
摘要: java用户界面——加载图片 jpg GIF 代码如下: package day08; import java.awt.GridLayout; import javax.swing.Icon;import javax.swing.ImageIcon;import javax.swing.JFrame 阅读全文
posted @ 2017-06-20 19:38 辰峰 阅读(840) 评论(0) 推荐(0) 编辑
摘要: 先从基础学起 创建一个面板 代码如下: package Day08; import java.awt.FlowLayout; import javax.swing.JButton;import javax.swing.JFrame;import javax.swing.JPanel; public 阅读全文
posted @ 2017-06-20 19:37 辰峰 阅读(697) 评论(0) 推荐(0) 编辑
摘要: java用户界面窗口 窗口框 代码如下: package Day08; import java.awt.Color;import java.awt.FlowLayout;import java.awt.Font;import java.awt.GridLayout; import javax.swi 阅读全文
posted @ 2017-06-20 19:36 辰峰 阅读(663) 评论(0) 推荐(0) 编辑
摘要: java窗口按钮位置设置 代码如下: package Day08; import java.awt.BorderLayout; import javax.swing.JButton;import javax.swing.JFrame;import javax.swing.JPanel; public 阅读全文
posted @ 2017-06-20 19:35 辰峰 阅读(5571) 评论(0) 推荐(0) 编辑
摘要: 使用java语言编写窗口按钮 代码如下: package Day08; import java.awt.FlowLayout; import javax.swing.JButton;import javax.swing.JFrame;import javax.swing.JLabel;import 阅读全文
posted @ 2017-06-20 19:33 辰峰 阅读(1445) 评论(0) 推荐(0) 编辑
摘要: 添加一个无参的构造方法并测试 代码如下: public class Rect {int x;int y;int width;int height;public Rect(){ this.x = 0; this.y = 0; this.width = 0; this.height = 0;}publi 阅读全文
posted @ 2017-06-20 19:31 辰峰 阅读(1157) 评论(0) 推荐(0) 编辑
摘要: 一个使用冒泡排序的简单程序 代码如下: package Day07;import java.util.Arrays;import java.util.Random; public class OneKindOfSort { public static void main(String[] args) 阅读全文
posted @ 2017-06-20 19:29 辰峰 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 什么是多态 我们用程序说话 代码如下: package Day07; public class DynamicBindingDemo { public static void main(String[] args) { m(new GraduateStudent()); m(new Student( 阅读全文
posted @ 2017-06-20 19:28 辰峰 阅读(170) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页