java 图形界面 mvc模式控制
使用模型-视图-控件结构来开发GUI程序。
下面的程序演示了MVC模式开发的java程序。
其中CircleModel为模型,包含了圆的半径,是否填充,等属性。
CircleView为视图,显示这个圆。
CircleController为控制器,控制圆的大小,以及是否被填充。
模型:
package circleMVC; import java.awt.Color;
import java.awt.event.*;
import java.util.*; public class CircleModel {
//圆半径
private double radius = 20; //是否填充
private boolean filled; //颜色
private java.awt.Color color; private ArrayList<ActionListener> actionListenerList; public double getRadius() {
return radius;
} public void setRadius(double radius) {
this.radius = radius;
processEvent(new ActionEvent(this, ActionEvent.ACTION_PERFORMED, "radius"));//当属性值改变是通知监听器
} public boolean isFilled() {
return filled;
} public void setFilled(boolean filled) {
this.filled = filled;
processEvent(new ActionEvent(this, ActionEvent.ACTION_PERFORMED, "filled"));//当属性值改变是通知监听器
} public java.awt.Color getColor() {
return color;
} public void setColor(java.awt.Color color) {
this.color = color;
processEvent(new ActionEvent(this, ActionEvent.ACTION_PERFORMED, "color"));//当属性值改变是通知监听器
} public synchronized void addActionListener(ActionListener l){
if(actionListenerList == null){
actionListenerList = new ArrayList<ActionListener>();
}
actionListenerList.add(l);
} public synchronized void removeActionListener(ActionListener l){
if(actionListenerList != null && actionListenerList.contains(l)){
actionListenerList.remove(l);
}
} private void processEvent(ActionEvent e){
ArrayList list; synchronized(this){
if(actionListenerList == null) return;
list = (ArrayList)actionListenerList.clone();
}
for(int i = 0; i < list.size(); i++){
ActionListener listener = (ActionListener)list.get(i);
listener.actionPerformed(e);
}
}
}
视图:
package circleMVC; import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class CircleView extends JPanel implements ActionListener{
private CircleModel model; public void actionPerformed(ActionEvent actionEvent){
repaint();
} //设置一个model
public void setModel(CircleModel newModel) {
model = newModel; if(model != null){
//给model增加啊监听器
model.addActionListener(this);
} repaint();
} public CircleModel getModel(){
return model;
} public void paintComponent(Graphics g){
super.paintComponent(g); if(model == null) return; g.setColor(model.getColor()); int xCenter = getWidth() / 2;
int yCenter = getHeight() / 2;
int radius = (int)model.getRadius(); if(model.isFilled()) {
g.fillOval(xCenter - radius, yCenter - radius, 2 * radius, 2 * radius);
}else{
g.drawOval(xCenter - radius, yCenter - radius, 2 * radius, 2 * radius);
}
}
}
控制器
package circleMVC; import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class CircleController extends JPanel{
private CircleModel model;
private JTextField jtfRadius = new JTextField();
@SuppressWarnings("unchecked")
private JComboBox jcboFilled = new JComboBox(new Boolean[]{
new Boolean(false), new Boolean(true)
});
private JRadioButton jrbRed, jrbGreen, jrbBlue; //创建一个新的CircleController
public CircleController(){
JPanel panel1 = new JPanel();
panel1.setLayout(new GridLayout(2,1));
panel1.add(new JLabel("Radius"));
panel1.add(new JLabel("Filled")); //
JPanel panel2 = new JPanel();
panel2.setLayout(new GridLayout(2,1));
panel2.add(jtfRadius);
panel2.add(jcboFilled); JPanel panel3 = new JPanel();
panel3.setLayout(new GridLayout(1, 3));
panel3.add(jrbRed = new JRadioButton("Red"));
panel3.add(jrbGreen = new JRadioButton("Green"));
panel3.add(jrbBlue = new JRadioButton("Blue")); setLayout(new BorderLayout());
add(panel1, BorderLayout.WEST);
add(panel2, BorderLayout.CENTER);
add(panel3, BorderLayout.SOUTH); //将三个单选框组成单选按钮
ButtonGroup group = new ButtonGroup();
group.add(jrbRed);
group.add(jrbGreen);
group.add(jrbBlue); jtfRadius.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e) {
if(model == null) return ;//还没有model
model.setRadius(new Double(jtfRadius.getText()).doubleValue());
}
}); jcboFilled.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
if(model == null) return;
model.setFilled( ((Boolean)jcboFilled.getSelectedItem()).booleanValue());
}
}); //单选按钮监听
jrbRed.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
if(model == null) return;
model.setColor(Color.RED);
}
}); jrbGreen.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
if(model == null) return;
model.setColor(Color.GREEN);
}
}); jrbBlue.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
if(model == null) return;
model.setColor(Color.BLUE);
}
});
} public void setModel(CircleModel newModel){
model = newModel;
} public CircleModel getModel() {
return model;
}
}
MVCDemo:
package circleMVC; import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class MVCDemo extends JApplet {
private JButton jbtController = new JButton("Show Contuoller");
private JButton jbtView = new JButton("Show View");
private CircleModel model = new CircleModel(); public MVCDemo() {
setLayout(new FlowLayout());
add(jbtController);
add(jbtView); jbtController.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) { JFrame frame = new JFrame("Controller");
CircleController controller = new CircleController();
controller.setModel(model);
frame.add(controller);
frame.setSize(240, 100);
frame.setLocation(200, 200);
frame.setVisible(true);
}
}); jbtView.addActionListener(new ActionListener() { @Override
public void actionPerformed(ActionEvent e) {
JFrame frame = new JFrame("view");
CircleView view = new CircleView();
view.setModel(model);
frame.add(view);
frame.setSize(200, 200);
frame.setLocation(200, 200);
frame.setVisible(true);
}
});
} }
运行效果:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgkAAAF/CAIAAABMk83uAAAAA3NCSVQICAjb4U/gAAAgAElEQVR4Xu2dCZxdVZ3nb+2VfWHNVpUFbbBdoJsETCpVCYtN245Oj0oDISASQXuYtluZGRYj2mH7jNo6tmPbmgAmMNAI44zD1pKESiUgOCqtDoMtkKoKe8hWSSW1vWX+951XJ6fOOffcc++777173/29Tz6Ve//n//+f//me5X/PvW+pO+2005zgr3w+H9wIFiDgEqirqysTCPOwZKUtLc0nn3RCc3NTNps165cpSLgFgRIJ1Dl1DY0No6Njb+/dR39Fb+bJZS6VomqYPXt2oEAxnQLhgrIXgUDD1MuJKDePTF46c+b01kmtbmKwcQodEIgfARq6uVyusaHRcfJDQ8NSgOaZZS4VXZH3AC/z9AvgCKqpJ0BjyX6Y+tIyj0yxtLWlOZ/LOX6ZgTbGQbc3lTHxRQGFlBCgUd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pYdapUbLH1BDQTiTIAmkrSMqhIxfl7KDqS/pMkTg5QJxIQhOjQkDHtuaiawWSDs/adEMxJoXk4kOT+VDtipWqrtArUuVaI1DC20zQ0sDnVchq4YhiAQ4eAOPT7JkI9qfux1wOS8LumAdaghMYRurzjvQjvBePMiUApSL1tJzk+lAy85hSp68KrFq0VMHs6K+7TNDbwypAdzf6DUkkCJA1dbC/k0j09WqaQjWvFjrwPuQTpg8WgTA6suRHvFpKVtL4TREgjRRywAraEk5KeBDsi/6lyVqBxsdFQrURIsN/BAzTPQXCVKU06g9FFbIkAKwDI9UEVsuefru7jQi5lAmwC0Qq/g1TlVdVBeoaZHHqgLtMqiUHvMhNoi4qz6VCVl6o7AuYHFweNTB3SZAoXbpBOozJimWsKNSdFQPeYS1gopQ0hzmAdgbrIUp1k56b1fG/Fb9pGqJkrUY1UiLbNB6akBBPVA+v8fHxt6VCRUgxwAAAAASUVORK5CYII=" alt="" />
二、
在同一个窗口中使用MVC模式,控制器和视图都在同一个窗口中,可以使用鼠标拖动来控制半径,也可以使用输入来控制半径,同时面积和体积要同步更新。
难点:在同一个窗口中,控制器的数据怎么和视图的数据进行交互,而且要同步显示,控制器和视图相互交错,控制器也是视图,视图也是控制器。
代码如下:
模型:
/**
* java MVC模式 模型部分
* 2016/5/22
*/
package circleMVC_x; import java.awt.Color;
import java.awt.event.*;
import java.util.*; public class CircleModel {
//圆半径
private double radius = 20; //是否填充
private boolean filled; //颜色
private java.awt.Color color; private ArrayList<ActionListener> actionListenerList; public double getRadius() {
return radius;
} public void setRadius(double radius) {
this.radius = radius;
processEvent(new ActionEvent(this, ActionEvent.ACTION_PERFORMED, "radius"));//当属性值改变是通知监听器
} public boolean isFilled() {
return filled;
} public void setFilled(boolean filled) {
this.filled = filled;
processEvent(new ActionEvent(this, ActionEvent.ACTION_PERFORMED, "filled"));//当属性值改变是通知监听器
} public java.awt.Color getColor() {
return color;
} public void setColor(java.awt.Color color) {
this.color = color;
processEvent(new ActionEvent(this, ActionEvent.ACTION_PERFORMED, "color"));//当属性值改变是通知监听器
} public synchronized void addActionListener(ActionListener l){
if(actionListenerList == null){
actionListenerList = new ArrayList<ActionListener>();
}
actionListenerList.add(l);
} public synchronized void removeActionListener(ActionListener l){
if(actionListenerList != null && actionListenerList.contains(l)){
actionListenerList.remove(l);
}
} private void processEvent(ActionEvent e){
ArrayList list; synchronized(this){
if(actionListenerList == null) return;
list = (ArrayList)actionListenerList.clone();
}
for(int i = 0; i < list.size(); i++){
ActionListener listener = (ActionListener)list.get(i);
listener.actionPerformed(e);
}
}
}
模型
控制器:
/**
* java MVC模式 控制器部分(其中面积,体积部分不能设置,算作视图)
* 2016/5/22
*/
package circleMVC_x; import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class CircleController extends JPanel implements ActionListener{
private CircleModel model;
private JTextField jtfRadius = new JTextField();
private JTextField jtfArea = new JTextField();
private JTextField jtfVolume= new JTextField();
private JRadioButton jrbRed, jrbGreen, jrbBlue; //创建一个新的CircleController
public CircleController(){
JPanel panel1 = new JPanel();
panel1.setLayout(new GridLayout(3,1));
panel1.add(new JLabel("半径:"));
panel1.add(new JLabel("面积:"));
panel1.add(new JLabel("体积:")); //
JPanel panel2 = new JPanel();
panel2.setLayout(new GridLayout(3,1));
panel2.add(jtfRadius);
panel2.add(jtfArea);
panel2.add(jtfVolume); JPanel panel3 = new JPanel();
panel3.setLayout(new GridLayout(1, 3));
panel3.add(jrbRed = new JRadioButton("Red"));
panel3.add(jrbGreen = new JRadioButton("Green"));
panel3.add(jrbBlue = new JRadioButton("Blue")); setLayout(new BorderLayout());
add(panel1, BorderLayout.WEST);
add(panel2, BorderLayout.CENTER);
add(panel3, BorderLayout.SOUTH); //将三个单选框组成单选按钮
ButtonGroup group = new ButtonGroup();
group.add(jrbRed);
group.add(jrbGreen);
group.add(jrbBlue); jtfRadius.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e) {
if(model == null) return ;//还没有model
model.setRadius(new Double(jtfRadius.getText()).doubleValue());
}
}); //单选按钮监听
jrbRed.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
if(model == null) return;
model.setColor(Color.RED);
}
}); jrbGreen.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
if(model == null) return;
model.setColor(Color.GREEN);
}
}); jrbBlue.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
if(model == null) return;
model.setColor(Color.BLUE);
}
});
} public void setModel(CircleModel newModel){
model = newModel;
if(model != null){
//给model增加啊监听器
model.addActionListener(this);
}
} public CircleModel getModel() {
return model;
} @Override
public void actionPerformed(ActionEvent e) {
double radius = model.getRadius();
jtfRadius.setText(model.getRadius()+"");
double num_1 = 4 * Math.PI * radius * radius;
double num_1_1 = (Math.round(num_1 * 100) / 100.0);// 保留两位小数
jtfArea.setText(num_1_1+"");
double num_2 = 4 / 3 * Math.PI * radius * radius;
double num_2_2 = (Math.round(num_2 * 100) / 100.0);// 保留两位小数
jtfVolume.setText(num_2_2+""); }
}
控制器
视图:
/**
* java MVC模式 视图部分
* 2016/5/22
*/
package circleMVC_x; import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class CircleView extends JPanel implements ActionListener{
private CircleModel model; public CircleView(){
super.setBounds(12, 144, 426, 300);
repaint();
//增加鼠标监听事件
addMouseMotionListener(new MouseMotionAdapter() {
public void mouseDragged(MouseEvent e){
model = getModel(); int x = e.getX();
int y = e.getY();
int radius; double radius_d = Math.sqrt((x - (getWidth() / 2))
* (x - (getWidth() / 2)) + (y - (getHeight() / 2))
* (y - (getHeight() / 2))); radius = (int) radius_d; System.out.println("坐标:" + x + " " + y );
model.setRadius(radius);
repaint(); }
});
}
public void actionPerformed(ActionEvent actionEvent){
repaint();
} //设置一个model
public void setModel(CircleModel newModel) {
model = newModel; if(model != null){
//给model增加啊监听器
model.addActionListener(this);
} repaint();
} public CircleModel getModel(){
return model;
} public void paintComponent(Graphics g){
super.paintComponent(g); if(model == null) return; g.setColor(model.getColor()); int radius = (int)model.getRadius(); g.drawOval(getWidth() / 2 - radius, getHeight() / 2 - radius,
2 * radius, 2 * radius);
g.drawOval(getWidth() / 2 - radius / 2, getHeight() / 2 - radius,
radius, 2 * radius);
g.drawOval(getWidth() / 2 - radius, getHeight() / 2 - radius / 2,
2 * radius, radius);
}
}
视图
程序入口:
/**
* javaMVC模式 入口
* 2016/6/20
*/
package circleMVC_x; import java.awt.BorderLayout;
import java.awt.EventQueue; import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.FlowLayout; public class MVCdemo_x extends JFrame { private JPanel contentPane;
private CircleController controller = new CircleController();
private CircleView view = new CircleView();
private CircleModel model = new CircleModel(); /**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
MVCdemo_x frame = new MVCdemo_x();
frame.setSize(500, 500);
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
} /**
* Create the frame.
*/
public MVCdemo_x() {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 450, 300);
contentPane = new JPanel();
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
setContentPane(contentPane);
contentPane.setLayout(null); JPanel panel = new JPanel();
controller.setModel(model);
panel.add(controller);
panel.setBounds(57, 34, 310, 98);
contentPane.add(panel); view.setModel(model);
contentPane.add(view);
}
}
程序入口
运行结果:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgUAAAIeCAIAAACk7+sCAAAAA3NCSVQICAjb4U/gAAAgAElEQVR4Xu2de4wkx33fZ2cft/fgPUhKMnkiV1xKoGkZeRgXwY9wKcd7gA0HDoyE/Mt3eR0IJICBBJGBQ+xDYFwC0AnzAAzkj8MFSY6GEZBBEiVWlIArQFwigSFLAWInEgNRS60kUtJRfNzxXvvOr7tmenr6NT3dVdVV3Z8BcZyprvrVrz6/3t+3q3qma2Z5ebkXex0cHBR8jA4lqsWbVHuv3WA1N2gFAQhAwA6BmZ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XRzSiAAAQj4S6B8lsusGS+M3ifeqI+ZhRE3dXRO/pe+hE+LQSQAcSUQW5FCKLvFMpCZ+jMH6W908RwCEIBATQLFWTFxNO9jXAbi7+O+JdqO1ouUMBT8K1bi2T8tDFIhbxiJyjVh0RwCEIBA6wnkpVM18DwZiOfhPEnIazu6n6ysqIyf/leOJsQgsliQ66MJQfHAysc1Mli+CTUhAAEI2CSgK91FPhcYjB/KfJ8nCWI8fkh9HLt/oIqKxSCR/eMiESdeIBLlA5PO/gVcypulJgQgAAGbBLQkrjwjifLoY+JNOvunCfx/cq8xmx7VSP0AAAAASUVORK5CYII=" alt="" />
java 图形界面 mvc模式控制的更多相关文章
- Java 图形界面开发--图文并茂建立学生管理系统
(尊重劳动成果,转载请注明出处:http://blog.csdn.net/qq_25827845/article/details/50932501 冷血之心的博客) 图形用户界面(Graphics U ...
- Java图形界面学习---------简易登录界面
/** * @author Administrator * Java图形界面学习---------简易登录界面 * date:2015/10/31 */ import java.awt.BorderL ...
- Java图形界面GUI
Java图形界面GUI 设置窗体JFrame对象 package com.Aha.Best; import javax.swing.ImageIcon; import javax.swing.JFra ...
- Java第5次实验提纲(Java图形界面编程)
1. Swing与NetBeans 使用NetBeans编写简单界面.见GUI实验参考文件中的0.第06次实验(图形程序设计.事件处理与Swing).doc 题目1: Swing用户界面组件与事件处理 ...
- Java第05次实验提纲(Java图形界面编程)
1. Swing与NetBeans 使用NetBeans编写简单界面.见GUI实验参考文件中的0.第06次实验(图形程序设计.事件处理与Swing).doc 题目1: Swing用户界面组件与事件处理 ...
- JAVA学习篇--JAVA两种编程模式控制
在Drp项目中,解说了两种编程模式Model 1和Model2.以下是对这两种模式的简单理解.以及因为Model2是基于MVC架构的模式,就将我们易混淆的MVC与我们之前学的三层架构进行对照学习一下. ...
- centos7命令行与图形界面启动模式修改
1.命令启动 systemctl set-default multi-user.target 2.图形界面模式 systemctl set-default graphical.target
- java 图形界面 Socket编程
一.使用图形界面实现客户端服务器端的通信: 上代码: 服务器端代码: package cn.MyNET; import java.io.*; import java.net.*; import jav ...
- java 图形界面
1.创建一个窗口框架 /** * java 用户界面框架 * 2016/5/10 */ package org.windows; import javax.swing.*; public class ...
随机推荐
- JDK7 LinkedList源代码分析
transient int size = 0; /** * Pointer to first node. * Invariant: (first == null && last == ...
- 4天html总结
- SQL in优化将In转化为联合查询
in查询有时候会非常影响性能,最好能转化为联合查询,但有的网友说sqlserver会自动将in转化为联合查询,但我实际遇到的有时候却不是这样.所以最好还是不要用in. 我自己的例子,用in的时候耗费了 ...
- 关于git提交、还原使用
1.本地修改,未提交到本地仓库,想要恢复到修改前 右键这个文件-team-show local hostory -找到某一版本-右键-get Contents 即可恢复到某一版本 2. 命令:git ...
- jmeter下载及安装配置
本文是在win7环境下安装使用jmeter,jmeter可以运行在多平台上Windows和Linux. 前提:使用jmeter工具之前需要安装java.并配置好java的环境变量.(备注:java下载 ...
- 教务处sso设计缺陷
前言 刚学习python,觉得比较枯燥总不知道从哪里入手,偶然一次,同学让我帮忙看看选课,发给我的是学校统一的默认格式的密码,突然就想试试有多少人还是默认密码,从QQ群里找了一份学生信息尝试了一下,发 ...
- CentOS 下安装apt-get
CentOS 下安装apt-get 最近在学习Linux系统时,网上好多帖子都是用apt-get里下载rpm包,于是就在Google上找了个CentOS下安装apt-get的方法 1.下载地址:htt ...
- 小团队git开发模式
实验室要使用Git进行代码管理,但是git非常复杂,各种开发模式也是层出不穷.作为新手的偶们很是发囧啊!!网上搜了一下,发现很多并不适合我们小团队运作(它本身就是为Linux内核管理而开发的分布式代码 ...
- Java线程池主线程等待子线程执行完成
今天讨论一个入门级的话题, 不然没东西更新对不起空间和域名~~ 工作总往往会遇到异步去执行某段逻辑, 然后先处理其他事情, 处理完后再把那段逻辑的处理结果进行汇总的产景, 这时候就需要使用线程了. 一 ...
- 淘淘商城_day10_课堂笔记
今日大纲 Dubbo入门学习 使用dubbo优化单点登录系统 系统间服务调用方式 浏览器直接访问 浏览器发起请求,通过ajax或jsonp方式请求: Httpclient方式 系统与系统之间通过Htt ...