本来在网上找了一个JPopupButton【@author SunKing】,但是实际使用的时候,无法满足L&F效果,在JGoodies Looks下无法正常显示。
期间还在网络找了一个JPopupToggleButton【@author Alexander Wenckus】,但是感觉过于简单,也不够满意。
于是只好自己重写一个。
以下为相关代码:
注意: 勿遗落最后的/name/xio/util/swing/toolbar-buttonarrow.png文件。
name.xio.util.swing.JPopupButton
package name.xio.util.swing; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Component; import java.awt.Graphics; import java.awt.Insets; import java.awt.Point; import java.awt.event.ActionEvent; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import javax.swing.AbstractAction; import javax.swing.AbstractButton; import javax.swing.Action; import javax.swing.BorderFactory; import javax.swing.ButtonModel; import javax.swing.Icon; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JOptionPane; import javax.swing.JPopupMenu; import javax.swing.JToolBar; import javax.swing.MenuElement; import javax.swing.UIManager; import javax.swing.UnsupportedLookAndFeelException; import javax.swing.WindowConstants; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import javax.swing.event.PopupMenuEvent; import javax.swing.event.PopupMenuListener; import name.xio.util.swing.icon.CompositeIcon; import name.xio.util.swing.icon.HTextIcon; import com.by.yb.util.Utilities; import com.jgoodies.looks.LookUtils; import com.jgoodies.looks.plastic.PlasticXPLookAndFeel; import com.jgoodies.looks.plastic.theme.ExperienceBlue; import com.jgoodies.looks.windows.WindowsLookAndFeel; /** * 弹出菜单按钮 * @author xio * */ public class JPopupButton extends JButton { private static final long serialVersionUID = -6783978058195706887L; /** * 弹出菜单 */ private JPopupMenu menu = new JPopupMenu(); /** * 按钮点击事件,与菜单中的第几项绑定 */ private int attachActionOnPopupMenuIndex = -1; /** * 是否显示箭头部分的分割线 */ private boolean showSeparator = false; public final static int NARROW_WIDTH = 11; public JPopupButton(Icon icon, JPopupMenu menu) { this(null, icon, menu); } public JPopupButton(String text, JPopupMenu menu) { this(text, null, menu); } public JPopupButton(String text, Icon icon, JPopupMenu menu) { initView(text, icon, menu); } /** * 初始化菜单按钮的视图 * @param text * @param icon * @param menu */ private void initView(String text, Icon icon, JPopupMenu menu) { //1.按钮绘制 this.setFocusable(false); this.setText(null); HTextIcon hTextIcon = new HTextIcon(this, text, 10); if (icon != null) { CompositeIcon commonButtonIcon = new CompositeIcon(icon, hTextIcon, CompositeIcon.LEFT); CompositeIcon popupButtonIcon = new CompositeIcon(commonButtonIcon, new ImageIcon(JPopupButton.class .getResource("toolbar-buttonarrow.png")), CompositeIcon.LEFT, 2, 0); this.setIcon(popupButtonIcon); } else { CompositeIcon popupButtonIcon = new CompositeIcon(hTextIcon, new ImageIcon(JPopupButton.class .getResource("toolbar-buttonarrow.png")), CompositeIcon.LEFT, 2, 0); this.setIcon(popupButtonIcon); } //this.setMargin(new Insets()); this.menu = menu; //2.事件监听 //Rollover监听 this.addChangeListener(new RolloverChangeListener()); //添加按钮鼠标事件监听 PopupButtonListener popupButtonListener = new PopupButtonListener(); this.addMouseMotionListener(popupButtonListener); this.addMouseListener(popupButtonListener); //添加菜单事件监听 if (menu != null) { menu.addPopupMenuListener(popupButtonListener); } //初始按钮事件绑定 clearAttachActionOnPopupMenu(); } /** * 清空按钮绑定事件 */ public void clearAttachActionOnPopupMenu() { attachActionOnPopupMenu(-1); } /** * 按钮行为绑定为弹出菜单第一项 */ public void attachDefaultActionOnPopupMenu() { attachActionOnPopupMenu(0); } /** * 按钮的行为绑定为弹出菜单 * @param index */ public void attachActionOnPopupMenu(int index) { if (menu == null) { attachActionOnPopupMenuIndex = -1; } else { MenuElement[] menuElements = menu.getSubElements(); if ((index < 0) || (Utilities.isEmpty(menuElements)) || (index >= menuElements.length)) { attachActionOnPopupMenuIndex = -1; } else { attachActionOnPopupMenuIndex = index; } } } /** * @return Returns the menu. */ public JPopupMenu getMenu() { return menu; } private void showMenu() { if (menu == null) { return; } Point locate = locateMenu(); menu.show(this, locate.x, locate.y); } private void showSeparator(boolean b) { showSeparator = b; this.repaint(); } /** * 按钮左部触发 */ public void onClick() { //点击位置为箭头位置 boolean mouseInNarrow = isMouseInNarrow(); if (mouseInNarrow) { onClickNarrow(); } else { if (attachActionOnPopupMenuIndex < 0) { onClickNarrow(); } else { MenuElement[] menuElements = menu.getSubElements(); ((AbstractButton) menuElements[attachActionOnPopupMenuIndex]).doClick(); } } } /** * 按钮箭头部触发 */ private void onClickNarrow() { showMenu(); } /** * 菜单位置 * @return */ protected Point locateMenu() { Point locate = new Point((int) getAlignmentX(), (int) getAlignmentY() + (getHeight() == 0 ? getPreferredSize().height : getHeight())); return locate; } public void paint(Graphics g) { super.paint(g); //绘制分离线 if (showSeparator) { Color oldColor = g.getColor(); Insets insets = this.getInsets(); int width = getWidth(); int height = getHeight(); Icon icon = this.getIcon(); //int x = icon == null ? (width - NARROW_WIDTH) : (mrgin.left - insets.left + icon.getIconWidth() - NARROW_WIDTH); int x = icon == null ? (width - NARROW_WIDTH) : (insets.left + icon.getIconWidth() - NARROW_WIDTH); int y = 0; // Button.light // Button.shadow // Button.darkShadow // Button.highlight //g.setColor(new Color(216, 214, 207)); g.setColor(UIManager.getColor("Button.shadow")); g.drawLine(x, y + 1, x, y + height - 3); //g.setColor(new Color(250, 250, 248)); g.setColor(UIManager.getColor("Button.highlight")); g.drawLine(x + 1, y + 1, x + 1, y + height - 3); g.setColor(oldColor); } } /** * 当前鼠标是否在按钮上 * @return */ public boolean isMouseOver() { return this.getMousePosition() != null; } /** * 鼠标位置是否在箭头部分 * @return */ public boolean isMouseInNarrow() { Point position = this.getMousePosition(); if (position == null) { return false; } else { return isMouseInNarrow(position); } } /** * 鼠标位置是否在箭头部分 * @param position * @return */ public boolean isMouseInNarrow(Point position) { Insets insets = this.getInsets(); Icon icon = this.getIcon(); int width = this.getWidth(); int height = this.getHeight(); //int narrowFromX = icon == null ? (width - NARROW_WIDTH) : (mrgin.left - insets.left + icon.getIconWidth() - NARROW_WIDTH); int narrowFromX = icon == null ? (width - NARROW_WIDTH) : (insets.left + icon.getIconWidth() - NARROW_WIDTH); int narrowFromY = 0; int narrowEndX = width; int narrowEndY = height; int eventX = (int) position.getX(); int eventY = (int) position.getY(); return ((narrowFromX <= eventX) && (eventX <= narrowEndX)) && ((narrowFromY <= eventY) && (eventY <= narrowEndY)); } /** * 按钮Rollover监听 * @author xio * */ class RolloverChangeListener implements ChangeListener { public void stateChanged(ChangeEvent e) { ButtonModel buttonModel = JPopupButton.this.getModel(); showSeparator(buttonModel.isRollover() || buttonModel.isPressed()); } } /** * 按钮和菜单的事件监听 * @author xio * */ class PopupButtonListener extends MouseAdapter implements PopupMenuListener { public void mouseEntered(MouseEvent e) { //防止部分L&F未设置Rollover JPopupButton.this.getModel().setRollover(true); } public void mouseExited(MouseEvent e) { //防止部分L&F未设置Rollover JPopupButton.this.getModel().setRollover(false); showSeparator(false); } public void mouseClicked(MouseEvent e) { JPopupButton.this.onClick(); } public void popupMenuCanceled(PopupMenuEvent e) { } public void popupMenuWillBecomeInvisible(PopupMenuEvent e) { //菜单不可见时,如果鼠标还在按钮上,设置Rollover状态,以便按钮的视图显示为Rollover if (isMouseOver()) { JPopupButton.this.getModel().setRollover(true); } } public void popupMenuWillBecomeVisible(PopupMenuEvent e) { //菜单显示时,修改按钮Rollover状态 JPopupButton.this.getModel().setRollover(false); } } public static void main(String[] args) { try { //不显示ToolBar的边界 UIManager.put("ToolBar.border", BorderFactory.createEmptyBorder()); if (LookUtils.IS_LAF_WINDOWS_XP_ENABLED) { UIManager.setLookAndFeel(new WindowsLookAndFeel()); } else { PlasticXPLookAndFeel.setCurrentTheme(new ExperienceBlue()); UIManager.setLookAndFeel(new PlasticXPLookAndFeel()); } // PlasticXPLookAndFeel.setCurrentTheme(new ExperienceBlue()); // UIManager.setLookAndFeel(new PlasticXPLookAndFeel()); } catch (UnsupportedLookAndFeelException e) { e.printStackTrace(); } catch (Exception e) { e.printStackTrace(); } JFrame frame = new JFrame("JPopupButton"); frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); frame.setSize(400, 320); //SwingUtils.locateCenterOnScreen(frame); class DemoAction extends AbstractAction { private static final long serialVersionUID = 5232174589593930544L; public DemoAction(String id) { super.putValue(Action.NAME, "Demo JPopupButton " + id); } public void actionPerformed(ActionEvent e) { JOptionPane.showMessageDialog((Component) e.getSource(), super.getValue(Action.NAME)); } } JPopupMenu popup = new JPopupMenu("PopupMenu"); popup.add(new DemoAction("0")); popup.add(new DemoAction("1")); popup.add(new DemoAction("2")); JPopupButton btt1 = new JPopupButton("中文文字", null, popup); JPopupButton btt2 = new JPopupButton("中文文字", null, popup); btt2.attachDefaultActionOnPopupMenu(); JPopupButton btt3 = new JPopupButton("中文文字", UIManager.getIcon("FileView.computerIcon"), popup); btt3.attachActionOnPopupMenu(2); JToolBar toolbar = new JToolBar(); toolbar.add(btt1); toolbar.add(btt2); toolbar.add(btt3); toolbar.add(new JButton("中文文字", UIManager.getIcon("FileView.computerIcon"))); toolbar.setBorder(BorderFactory.createEmptyBorder(5, 15, 5, 3)); frame.getContentPane().add(toolbar, BorderLayout.NORTH); frame.setVisible(true); } }
name.xio.util.swing.icon.CompositeIcon
package name.xio.util.swing.icon; import java.awt.Component; import java.awt.Graphics; import javax.swing.Icon; import javax.swing.SwingConstants; /** CompositeIcon is an Icon implementation which draws two icons with a specified relative position: LEFT, RIGHT, TOP, BOTTOM specify how icon1 is drawn relative to icon2 CENTER: icon1 is drawn first, icon2 is drawn over it and with horizontal and vertical orientations within the alloted space It's useful with VTextIcon when you want an icon with your text: if icon1 is the graphic icon and icon2 is the VTextIcon, you get a similar effect to a JLabel with a graphic icon and text * @from http://www.macdevcenter.com/pub/a/mac/2002/03/22/vertical_text.html?page=last&x-order=date * @changedBy xio */ public class CompositeIcon implements Icon, SwingConstants { Icon fIcon1, fIcon2; int fPosition, fHorizontalOrientation, fVerticalOrientation; int widthOffset, heightOffset; /** Create a CompositeIcon from the specified Icons, using the default relative position (icon1 above icon2) and orientations (centered horizontally and vertically) */ public CompositeIcon(Icon icon1, Icon icon2) { this(icon1, icon2, TOP); } /** Create a CompositeIcon from the specified Icons, using the specified relative position and default orientations (centered horizontally and vertically) */ public CompositeIcon(Icon icon1, Icon icon2, int position) { this(icon1, icon2, position, CENTER, CENTER, (position == LEFT || position == RIGHT) ? 2 : -7, (position == LEFT || position == RIGHT) ? 0 : 6); } public CompositeIcon(Icon icon1, Icon icon2, int position, int widthOffset, int heightOffset) { this(icon1, icon2, position, CENTER, CENTER, widthOffset, heightOffset); } /** Create a CompositeIcon from the specified Icons, using the specified relative position and orientations */ public CompositeIcon(Icon icon1, Icon icon2, int position, int horizontalOrientation, int verticalOrientation, int widthOffset, int heightOffset) { fIcon1 = icon1; fIcon2 = icon2; fPosition = position; this.widthOffset = widthOffset; this.heightOffset = heightOffset; fHorizontalOrientation = horizontalOrientation; fVerticalOrientation = verticalOrientation; } /** * Draw the icon at the specified location. Icon implementations * may use the Component argument to get properties useful for * painting, e.g. the foreground or background color. */ public void paintIcon(Component c, Graphics g, int x, int y) { int width = getIconWidth(); int height = getIconHeight(); if (fPosition == LEFT || fPosition == RIGHT) { Icon leftIcon, rightIcon; if (fPosition == LEFT) { leftIcon = fIcon1; rightIcon = fIcon2; } else { leftIcon = fIcon2; rightIcon = fIcon1; } // "Left" orientation, because we specify the x position paintIcon(c, g, leftIcon, x, y, width, height, LEFT, fVerticalOrientation); paintIcon(c, g, rightIcon, x + leftIcon.getIconWidth(), y, width, height, LEFT, fVerticalOrientation); } else if (fPosition == TOP || fPosition == BOTTOM) { Icon topIcon, bottomIcon; if (fPosition == TOP) { topIcon = fIcon1; bottomIcon = fIcon2; } else { topIcon = fIcon2; bottomIcon = fIcon1; } // "Top" orientation, because we specify the y position paintIcon(c, g, topIcon, x, y, width, height, fHorizontalOrientation, TOP); paintIcon(c, g, bottomIcon, x, y + topIcon.getIconHeight(), width, height, fHorizontalOrientation, TOP); } else { paintIcon(c, g, fIcon1, x, y, width, height, fHorizontalOrientation, fVerticalOrientation); paintIcon(c, g, fIcon2, x, y, width, height, fHorizontalOrientation, fVerticalOrientation); } } /* Paints one icon in the specified rectangle with the given orientations */ void paintIcon(Component c, Graphics g, Icon icon, int x, int y, int width, int height, int horizontalOrientation, int verticalOrientation) { int xIcon, yIcon; switch (horizontalOrientation) { case LEFT: xIcon = x; break; case RIGHT: xIcon = x + width - icon.getIconWidth(); break; default: xIcon = x + (width - icon.getIconWidth()) / 2; break; } switch (verticalOrientation) { case TOP: yIcon = y; break; case BOTTOM: yIcon = y + height - icon.getIconHeight(); break; default: yIcon = y + (height - icon.getIconHeight()) / 2; break; } icon.paintIcon(c, g, xIcon, yIcon); } /** * Returns the icon's width. * * @return an int specifying the fixed width of the icon. */ public int getIconWidth() { if (fPosition == LEFT || fPosition == RIGHT) return fIcon1.getIconWidth() + fIcon2.getIconWidth() + widthOffset; return Math.max(fIcon1.getIconWidth(), fIcon2.getIconWidth()) + widthOffset; } /** * Returns the icon's height. * * @return an int specifying the fixed height of the icon. */ public int getIconHeight() { if (fPosition == TOP || fPosition == BOTTOM) return fIcon1.getIconHeight() + fIcon2.getIconHeight() + heightOffset; return Math.max(fIcon1.getIconHeight(), fIcon2.getIconHeight()) + heightOffset; } }
name.xio.util.swing.icon.HTextIcon
package name.xio.util.swing.icon; import java.awt.Component; import java.awt.FontMetrics; import java.awt.Graphics; import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; import javax.swing.Icon; /** * 水平文本Icon * @author xio * */ public class HTextIcon implements Icon, PropertyChangeListener { private String text; private int textWidth; private int textHeight; private int fontCharHeight; private Component fontComponent; private int marginLeft; private int marginRight; static final int MARGIN = 4; static final int MIN_TEXT_HEIGHT = 15; static final int MIN_TEXT_WIDTH = 16; public HTextIcon(Component component, String label) { this(component, label, MARGIN, MARGIN); } public HTextIcon(Component component, String label, int marginRight) { this(component, label, MARGIN, marginRight); } /** * 指定一个Component,创建水平文本Icon * @param component * @param label */ public HTextIcon(Component component, String label, int marginLeft, int marginRight) { fontComponent = component; text = label; this.marginLeft = marginLeft; this.marginRight = marginRight; calcDimensions(); fontComponent.addPropertyChangeListener(this); } /** * sets the label to the given string, updating the orientation as needed * and invalidating the layout if the size changes * @see #verifyRotation */ public void setLabel(String label) { text = label; recalcDimensions(); } /** * Checks for changes to the font on the fComponent * so that it can invalidate the layout if the size changes */ public void propertyChange(PropertyChangeEvent e) { String prop = e.getPropertyName(); if ("font".equals(prop)) { recalcDimensions(); } } /** * Calculates the dimensions. If they've changed, * invalidates the component */ void recalcDimensions() { int wOld = getIconWidth(); int hOld = getIconHeight(); calcDimensions(); if (wOld != getIconWidth() || hOld != getIconHeight()) fontComponent.invalidate(); } void calcDimensions() { FontMetrics fontMetrics = fontComponent.getFontMetrics(fontComponent.getFont()); int fontDescent = fontMetrics.getDescent(); fontCharHeight = fontMetrics.getAscent() + fontDescent; textWidth = fontMetrics.stringWidth(text) + marginLeft + marginRight; if (textWidth < MIN_TEXT_WIDTH) { textWidth = MIN_TEXT_WIDTH; } textHeight = fontCharHeight + fontDescent; if (textHeight < MIN_TEXT_HEIGHT) { textHeight = MIN_TEXT_HEIGHT; } // //强制调整尺寸 // fWidth -= 5; // fHeight += 6; } /** * 绘制文本 */ public void paintIcon(Component c, Graphics g, int x, int y) { g.setColor(c.getForeground()); g.setFont(c.getFont()); g.drawString(text, x + marginLeft, y + fontCharHeight - 2); } /** * icon宽度 */ public int getIconWidth() { return textWidth; } /** * icon高度 */ public int getIconHeight() { return textHeight; } }
/name/xio/util/swing/toolbar-buttonarrow.png: http://xio.iteye.com/upload/attachment/44097/f0b31625-ac6e-36a5-a5cd-d86bca96e72d.png
评论
1 楼
mikewang
2009-04-09
做的,不错, 在给你你加个点击记忆功能
思路
1 每次点击菜单的时候保存这个菜单的index,并且出发菜单下表变更事件
2 在JPopupButton中 监听事件, 并调用attachActionOnPopupMenu 绑定点击按钮所执行的菜单
实现:
JPopupMenu 达不到要求, 需要改造一下
JPopupButton 本部分都差不多, 就增加了一个属性监听器, 监听clickedMenuIndex, 并调用attachActionOnPopupMenu, 改变下标
思路
1 每次点击菜单的时候保存这个菜单的index,并且出发菜单下表变更事件
2 在JPopupButton中 监听事件, 并调用attachActionOnPopupMenu 绑定点击按钮所执行的菜单
实现:
JPopupMenu 达不到要求, 需要改造一下
package info.mikewang.part.test; import java.awt.Component; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.ContainerEvent; import java.awt.event.ContainerListener; import java.util.Vector; import javax.swing.AbstractButton; import javax.swing.JPopupMenu; import javax.swing.MenuElement; class JPopupButtonMenu extends JPopupMenu { private static final long serialVersionUID = -8812143869773395718L; private int clickedMenuIndex = -1; public JPopupButtonMenu() { this(null); } public JPopupButtonMenu(String label) { super(label); addContainerListener(new XContainerListener()); } public int getClickedMenuIndex() { return clickedMenuIndex; } public AbstractButton[] getSubClickedElements() { AbstractButton result[]; Vector<AbstractButton> tmpx = new Vector<AbstractButton>(); MenuElement tmp[] = getSubElements(); for (MenuElement menuElement : tmp) { if (menuElement instanceof AbstractButton) { tmpx.add((AbstractButton) menuElement); } } result = new AbstractButton[tmpx.size()]; for (int i = 0; i < tmpx.size(); i++) { result[i] = tmpx.elementAt(i); } return result; } // ---------------------------------- class XContainerListener implements ContainerListener { @Override public void componentAdded(ContainerEvent e) { Component c = e.getChild(); if (c instanceof AbstractButton) { ((AbstractButton) c).addActionListener(new XActionListener()); } } @Override public void componentRemoved(ContainerEvent e) { } } class XActionListener implements ActionListener { @Override public void actionPerformed(ActionEvent e) { AbstractButton ab = (AbstractButton) e.getSource(); AbstractButton abs[] = getSubClickedElements(); for (int i = 0; i < abs.length; i++) { if (ab == abs[i]) { int oldClickedMenuIndex = clickedMenuIndex; clickedMenuIndex = i; firePropertyChange("clickedMenuIndex", oldClickedMenuIndex, i); break; } } } } }
JPopupButton 本部分都差不多, 就增加了一个属性监听器, 监听clickedMenuIndex, 并调用attachActionOnPopupMenu, 改变下标
private void initClickRemember() { menu.addPropertyChangeListener("clickedMenuIndex", new PropertyChangeListener() { @Override public void propertyChange(PropertyChangeEvent evt) { Integer ii = (Integer) evt.getNewValue(); attachActionOnPopupMenu(ii.intValue()); } }); }
相关推荐
2006/01/20 修正了JPopupButton在XP风格下呈两个按钮样子的BUG 对JFontDialog进行了部分修改 2006/03/08 从JDatePicker提出来一个组件JCalendarPanel日期选择面板 并修改了JDatePicker的设计方式 2006/03/23 ...
只能输入0~255数字的IP地址 JListChooser 列表选择对话框 JNumberField 数字输入框,可限制小数位数,数字最大长度,最大最小能输入的数字 JPopupButton 带下拉菜单的工具栏按钮 JStatusBar 模拟Windows的...
基于springboot大学生就业信息管理系统源码数据库文档.zip
基于java的驾校收支管理可视化平台的开题报告
时间序列 原木 间隔5秒钟 20241120
毕业设计&课设_基于 Vue 的电影在线预订与管理系统:后台 Java(SSM)代码,为毕业设计项目.zip
基于springboot课件通中小学教学课件共享平台源码数据库文档.zip
基于java的网上购物商城的开题报告
Delphi人脸检测与识别Demo1fdef-main.zip
基于java的咖啡在线销售系统的开题报告
基于java的自助医疗服务系统的开题报告.docx
内容概要:本文档全面介绍了Visual Basic(VB)编程语言的基础知识和高级应用。首先概述了VB的基本特性和开发环境,随后详细讲述了VB的数据类型、变量、运算符、控制结构、数组、过程与函数、变量作用域等内容。接着介绍了窗体设计、控件使用、菜单与工具栏的设计,文件操作、数据库访问等关键知识点。最后讨论了VB的学习方法、发展历史及其在桌面应用、Web应用、数据库应用、游戏开发和自动化脚本编写等领域的广泛应用前景。 适合人群:初学者和中级程序员,尤其是希望快速掌握Windows桌面应用开发的人群。 使用场景及目标:①掌握VB的基础语法和开发环境;②学会使用VB创建复杂的用户界面和功能完整的应用程序;③理解数据库操作、文件管理和网络编程等高级主题。 其他说明:Visual Basic是一种简单易学且功能强大的编程语言,尤其适合用于开发Windows桌面应用。文中不仅覆盖了基础知识,还包括了大量的实用案例和技术细节,帮助读者快速提升编程技能。
基于java的疫情期间高校防控系统开题报告.docx
基于springboot+vue社区老年人帮扶系统源码数据库文档.zip
基于java的超市商品管理系统的开题报告.docx
基于SpringBoot房屋买卖平台源码数据库文档.zip
xdu限通院23微处理器系统与应用大作业(两只老虎),适应于汇编语言keil软件,
<项目介绍> - 新闻类网站系统,基于SSM(Spring、Spring MVC、MyBatis)+MySQL开发,高分成品毕业设计,附带往届论文 - 不懂运行,下载完可以私聊问,可远程教学 1、该资源内项目代码都经过测试运行成功,功能ok的情况下才上传的,请放心下载使用! 2、本项目适合计算机相关专业(如计科、人工智能、通信工程、自动化、电子信息等)的在校学生、老师或者企业员工下载学习,也适合小白学习进阶,当然也可作为毕设项目、课程设计、作业、项目初期立项演示等。 3、如果基础还行,也可在此代码基础上进行修改,以实现其他功能,也可用于毕设、课设、作业等。 下载后请首先打开README.md文件(如有),仅供学习参考, 切勿用于商业用途。 --------
基于java的学生网上请假系统的开题报告.docx
社会经济繁荣发展的今天,电子商务得到了飞速发展,网上交易越来越彰显出其独特的优越性,在人们的日常生活中,出现了各种类型的交易网站。其中一个就是车辆易主交易网站,它是一个服务于用户买卖二手车辆的交易网站,为用户提供了平等互利、方便快捷的网上交易平台,通过这一类型的网站,用户可自由出售和购买车辆。 本课题主要根据车辆本身的特性,充分发挥互联网的特点与优势,构建一个以二手车辆为商品、基于互联网平台的车辆易主业务交易管理系统,并根据车辆易主业务交易管理系统的应用需求,进行需求分析,进而对网站系统作规划设计。采用IDEA为运行平台,以SSH为框架,运用HTML语言、JSP技术、MySql数据库、JSP与后台数据库链接等关键技术建设二手车网上交易系统,构建车辆易主交易系统的会员注册与登录,网站首页展示、用户发布商品车辆,用户求购商品车辆,分页浏览、购物系统、用户后台管理、管理员用户后台管理等功能,并使这些功能得以实现并更好为用户服务。网站整体构建完成且测试成功后,用户可以进入网站进行注册、登录,登录后,用户可以在网站上发布自己的闲置车辆或者寻找想要购买的车辆,还可以收藏车辆,管理发布和收藏的车辆,